pubsubpb

package
v1.45.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 13 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IngestionDataSourceSettings_AwsKinesis_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "KINESIS_PERMISSION_DENIED",
		3: "PUBLISH_PERMISSION_DENIED",
		4: "STREAM_NOT_FOUND",
		5: "CONSUMER_NOT_FOUND",
	}
	IngestionDataSourceSettings_AwsKinesis_State_value = map[string]int32{
		"STATE_UNSPECIFIED":         0,
		"ACTIVE":                    1,
		"KINESIS_PERMISSION_DENIED": 2,
		"PUBLISH_PERMISSION_DENIED": 3,
		"STREAM_NOT_FOUND":          4,
		"CONSUMER_NOT_FOUND":        5,
	}
)

Enum value maps for IngestionDataSourceSettings_AwsKinesis_State.

View Source
var (
	IngestionDataSourceSettings_CloudStorage_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "CLOUD_STORAGE_PERMISSION_DENIED",
		3: "PUBLISH_PERMISSION_DENIED",
		4: "BUCKET_NOT_FOUND",
		5: "TOO_MANY_OBJECTS",
	}
	IngestionDataSourceSettings_CloudStorage_State_value = map[string]int32{
		"STATE_UNSPECIFIED":               0,
		"ACTIVE":                          1,
		"CLOUD_STORAGE_PERMISSION_DENIED": 2,
		"PUBLISH_PERMISSION_DENIED":       3,
		"BUCKET_NOT_FOUND":                4,
		"TOO_MANY_OBJECTS":                5,
	}
)

Enum value maps for IngestionDataSourceSettings_CloudStorage_State.

View Source
var (
	PlatformLogsSettings_Severity_name = map[int32]string{
		0: "SEVERITY_UNSPECIFIED",
		1: "DISABLED",
		2: "DEBUG",
		3: "INFO",
		4: "WARNING",
		5: "ERROR",
	}
	PlatformLogsSettings_Severity_value = map[string]int32{
		"SEVERITY_UNSPECIFIED": 0,
		"DISABLED":             1,
		"DEBUG":                2,
		"INFO":                 3,
		"WARNING":              4,
		"ERROR":                5,
	}
)

Enum value maps for PlatformLogsSettings_Severity.

View Source
var (
	Topic_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "INGESTION_RESOURCE_ERROR",
	}
	Topic_State_value = map[string]int32{
		"STATE_UNSPECIFIED":        0,
		"ACTIVE":                   1,
		"INGESTION_RESOURCE_ERROR": 2,
	}
)

Enum value maps for Topic_State.

View Source
var (
	Subscription_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "RESOURCE_ERROR",
	}
	Subscription_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"ACTIVE":            1,
		"RESOURCE_ERROR":    2,
	}
)

Enum value maps for Subscription_State.

View Source
var (
	BigQueryConfig_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "PERMISSION_DENIED",
		3: "NOT_FOUND",
		4: "SCHEMA_MISMATCH",
		5: "IN_TRANSIT_LOCATION_RESTRICTION",
	}
	BigQueryConfig_State_value = map[string]int32{
		"STATE_UNSPECIFIED":               0,
		"ACTIVE":                          1,
		"PERMISSION_DENIED":               2,
		"NOT_FOUND":                       3,
		"SCHEMA_MISMATCH":                 4,
		"IN_TRANSIT_LOCATION_RESTRICTION": 5,
	}
)

Enum value maps for BigQueryConfig_State.

View Source
var (
	CloudStorageConfig_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "ACTIVE",
		2: "PERMISSION_DENIED",
		3: "NOT_FOUND",
		4: "IN_TRANSIT_LOCATION_RESTRICTION",
		5: "SCHEMA_MISMATCH",
	}
	CloudStorageConfig_State_value = map[string]int32{
		"STATE_UNSPECIFIED":               0,
		"ACTIVE":                          1,
		"PERMISSION_DENIED":               2,
		"NOT_FOUND":                       3,
		"IN_TRANSIT_LOCATION_RESTRICTION": 4,
		"SCHEMA_MISMATCH":                 5,
	}
)

Enum value maps for CloudStorageConfig_State.

View Source
var (
	SchemaView_name = map[int32]string{
		0: "SCHEMA_VIEW_UNSPECIFIED",
		1: "BASIC",
		2: "FULL",
	}
	SchemaView_value = map[string]int32{
		"SCHEMA_VIEW_UNSPECIFIED": 0,
		"BASIC":                   1,
		"FULL":                    2,
	}
)

Enum value maps for SchemaView.

View Source
var (
	Encoding_name = map[int32]string{
		0: "ENCODING_UNSPECIFIED",
		1: "JSON",
		2: "BINARY",
	}
	Encoding_value = map[string]int32{
		"ENCODING_UNSPECIFIED": 0,
		"JSON":                 1,
		"BINARY":               2,
	}
)

Enum value maps for Encoding.

View Source
var (
	Schema_Type_name = map[int32]string{
		0: "TYPE_UNSPECIFIED",
		1: "PROTOCOL_BUFFER",
		2: "AVRO",
	}
	Schema_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED": 0,
		"PROTOCOL_BUFFER":  1,
		"AVRO":             2,
	}
)

Enum value maps for Schema_Type.

View Source
var File_google_pubsub_v1_pubsub_proto protoreflect.FileDescriptor
View Source
var File_google_pubsub_v1_schema_proto protoreflect.FileDescriptor

Functions

func RegisterPublisherServer

func RegisterPublisherServer(s *grpc.Server, srv PublisherServer)

func RegisterSchemaServiceServer

func RegisterSchemaServiceServer(s *grpc.Server, srv SchemaServiceServer)

func RegisterSubscriberServer

func RegisterSubscriberServer(s *grpc.Server, srv SubscriberServer)

Types

type AcknowledgeRequest

type AcknowledgeRequest struct {

	// Required. The subscription whose message is being acknowledged.
	// Format is `projects/{project}/subscriptions/{sub}`.
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// Required. The acknowledgment ID for the messages being acknowledged that
	// was returned by the Pub/Sub system in the `Pull` response. Must not be
	// empty.
	AckIds []string `protobuf:"bytes,2,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"`
	// contains filtered or unexported fields
}

Request for the Acknowledge method.

func (*AcknowledgeRequest) Descriptor deprecated

func (*AcknowledgeRequest) Descriptor() ([]byte, []int)

Deprecated: Use AcknowledgeRequest.ProtoReflect.Descriptor instead.

func (*AcknowledgeRequest) GetAckIds

func (x *AcknowledgeRequest) GetAckIds() []string

func (*AcknowledgeRequest) GetSubscription

func (x *AcknowledgeRequest) GetSubscription() string

func (*AcknowledgeRequest) ProtoMessage

func (*AcknowledgeRequest) ProtoMessage()

func (*AcknowledgeRequest) ProtoReflect

func (x *AcknowledgeRequest) ProtoReflect() protoreflect.Message

func (*AcknowledgeRequest) Reset

func (x *AcknowledgeRequest) Reset()

func (*AcknowledgeRequest) String

func (x *AcknowledgeRequest) String() string

type BigQueryConfig

type BigQueryConfig struct {

	// Optional. The name of the table to which to write data, of the form
	// {projectId}.{datasetId}.{tableId}
	Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
	// Optional. When true, use the topic's schema as the columns to write to in
	// BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be
	// enabled at the same time.
	UseTopicSchema bool `protobuf:"varint,2,opt,name=use_topic_schema,json=useTopicSchema,proto3" json:"use_topic_schema,omitempty"`
	// Optional. When true, write the subscription name, message_id, publish_time,
	// attributes, and ordering_key to additional columns in the table. The
	// subscription name, message_id, and publish_time fields are put in their own
	// columns while all other message properties (other than data) are written to
	// a JSON object in the attributes column.
	WriteMetadata bool `protobuf:"varint,3,opt,name=write_metadata,json=writeMetadata,proto3" json:"write_metadata,omitempty"`
	// Optional. When true and use_topic_schema is true, any fields that are a
	// part of the topic schema that are not part of the BigQuery table schema are
	// dropped when writing to BigQuery. Otherwise, the schemas must be kept in
	// sync and any messages with extra fields are not written and remain in the
	// subscription's backlog.
	DropUnknownFields bool `protobuf:"varint,4,opt,name=drop_unknown_fields,json=dropUnknownFields,proto3" json:"drop_unknown_fields,omitempty"`
	// Output only. An output-only field that indicates whether or not the
	// subscription can receive messages.
	State BigQueryConfig_State `protobuf:"varint,5,opt,name=state,proto3,enum=google.pubsub.v1.BigQueryConfig_State" json:"state,omitempty"`
	// Optional. When true, use the BigQuery table's schema as the columns to
	// write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
	// enabled at the same time.
	UseTableSchema bool `protobuf:"varint,6,opt,name=use_table_schema,json=useTableSchema,proto3" json:"use_table_schema,omitempty"`
	// Optional. The service account to use to write to BigQuery. The subscription
	// creator or updater that specifies this field must have
	// `iam.serviceAccounts.actAs` permission on the service account. If not
	// specified, the Pub/Sub [service
	// agent](https://cloud.google.com/iam/docs/service-agents),
	// service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
	ServiceAccountEmail string `protobuf:"bytes,7,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a BigQuery subscription.

func (*BigQueryConfig) Descriptor deprecated

func (*BigQueryConfig) Descriptor() ([]byte, []int)

Deprecated: Use BigQueryConfig.ProtoReflect.Descriptor instead.

func (*BigQueryConfig) GetDropUnknownFields

func (x *BigQueryConfig) GetDropUnknownFields() bool

func (*BigQueryConfig) GetServiceAccountEmail added in v1.39.0

func (x *BigQueryConfig) GetServiceAccountEmail() string

func (*BigQueryConfig) GetState

func (x *BigQueryConfig) GetState() BigQueryConfig_State

func (*BigQueryConfig) GetTable

func (x *BigQueryConfig) GetTable() string

func (*BigQueryConfig) GetUseTableSchema added in v1.34.0

func (x *BigQueryConfig) GetUseTableSchema() bool

func (*BigQueryConfig) GetUseTopicSchema

func (x *BigQueryConfig) GetUseTopicSchema() bool

func (*BigQueryConfig) GetWriteMetadata

func (x *BigQueryConfig) GetWriteMetadata() bool

func (*BigQueryConfig) ProtoMessage

func (*BigQueryConfig) ProtoMessage()

func (*BigQueryConfig) ProtoReflect

func (x *BigQueryConfig) ProtoReflect() protoreflect.Message

func (*BigQueryConfig) Reset

func (x *BigQueryConfig) Reset()

func (*BigQueryConfig) String

func (x *BigQueryConfig) String() string

type BigQueryConfig_State

type BigQueryConfig_State int32

Possible states for a BigQuery subscription.

const (
	// Default value. This value is unused.
	BigQueryConfig_STATE_UNSPECIFIED BigQueryConfig_State = 0
	// The subscription can actively send messages to BigQuery
	BigQueryConfig_ACTIVE BigQueryConfig_State = 1
	// Cannot write to the BigQuery table because of permission denied errors.
	// This can happen if
	// - Pub/Sub SA has not been granted the [appropriate BigQuery IAM
	// permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account)
	// - bigquery.googleapis.com API is not enabled for the project
	// ([instructions](https://cloud.google.com/service-usage/docs/enable-disable))
	BigQueryConfig_PERMISSION_DENIED BigQueryConfig_State = 2
	// Cannot write to the BigQuery table because it does not exist.
	BigQueryConfig_NOT_FOUND BigQueryConfig_State = 3
	// Cannot write to the BigQuery table due to a schema mismatch.
	BigQueryConfig_SCHEMA_MISMATCH BigQueryConfig_State = 4
	// Cannot write to the destination because enforce_in_transit is set to true
	// and the destination locations are not in the allowed regions.
	BigQueryConfig_IN_TRANSIT_LOCATION_RESTRICTION BigQueryConfig_State = 5
)

func (BigQueryConfig_State) Descriptor

func (BigQueryConfig_State) Enum

func (BigQueryConfig_State) EnumDescriptor deprecated

func (BigQueryConfig_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use BigQueryConfig_State.Descriptor instead.

func (BigQueryConfig_State) Number

func (BigQueryConfig_State) String

func (x BigQueryConfig_State) String() string

func (BigQueryConfig_State) Type

type CloudStorageConfig added in v1.31.0

type CloudStorageConfig struct {

	// Required. User-provided name for the Cloud Storage bucket.
	// The bucket must be created by the user. The bucket name must be without
	// any prefix like "gs://". See the [bucket naming
	// requirements] (https://cloud.google.com/storage/docs/buckets#naming).
	Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// Optional. User-provided prefix for Cloud Storage filename. See the [object
	// naming requirements](https://cloud.google.com/storage/docs/objects#naming).
	FilenamePrefix string `protobuf:"bytes,2,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"`
	// Optional. User-provided suffix for Cloud Storage filename. See the [object
	// naming requirements](https://cloud.google.com/storage/docs/objects#naming).
	// Must not end in "/".
	FilenameSuffix string `protobuf:"bytes,3,opt,name=filename_suffix,json=filenameSuffix,proto3" json:"filename_suffix,omitempty"`
	// Optional. User-provided format string specifying how to represent datetimes
	// in Cloud Storage filenames. See the [datetime format
	// guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
	FilenameDatetimeFormat string `` /* 130-byte string literal not displayed */
	// Defaults to text format.
	//
	// Types that are assignable to OutputFormat:
	//
	//	*CloudStorageConfig_TextConfig_
	//	*CloudStorageConfig_AvroConfig_
	OutputFormat isCloudStorageConfig_OutputFormat `protobuf_oneof:"output_format"`
	// Optional. The maximum duration that can elapse before a new Cloud Storage
	// file is created. Min 1 minute, max 10 minutes, default 5 minutes. May not
	// exceed the subscription's acknowledgement deadline.
	MaxDuration *durationpb.Duration `protobuf:"bytes,6,opt,name=max_duration,json=maxDuration,proto3" json:"max_duration,omitempty"`
	// Optional. The maximum bytes that can be written to a Cloud Storage file
	// before a new file is created. Min 1 KB, max 10 GiB. The max_bytes limit may
	// be exceeded in cases where messages are larger than the limit.
	MaxBytes int64 `protobuf:"varint,7,opt,name=max_bytes,json=maxBytes,proto3" json:"max_bytes,omitempty"`
	// Optional. The maximum number of messages that can be written to a Cloud
	// Storage file before a new file is created. Min 1000 messages.
	MaxMessages int64 `protobuf:"varint,8,opt,name=max_messages,json=maxMessages,proto3" json:"max_messages,omitempty"`
	// Output only. An output-only field that indicates whether or not the
	// subscription can receive messages.
	State CloudStorageConfig_State `protobuf:"varint,9,opt,name=state,proto3,enum=google.pubsub.v1.CloudStorageConfig_State" json:"state,omitempty"`
	// Optional. The service account to use to write to Cloud Storage. The
	// subscription creator or updater that specifies this field must have
	// `iam.serviceAccounts.actAs` permission on the service account. If not
	// specified, the Pub/Sub
	// [service agent](https://cloud.google.com/iam/docs/service-agents),
	// service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
	ServiceAccountEmail string `protobuf:"bytes,11,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a Cloud Storage subscription.

func (*CloudStorageConfig) Descriptor deprecated added in v1.31.0

func (*CloudStorageConfig) Descriptor() ([]byte, []int)

Deprecated: Use CloudStorageConfig.ProtoReflect.Descriptor instead.

func (*CloudStorageConfig) GetAvroConfig added in v1.31.0

func (*CloudStorageConfig) GetBucket added in v1.31.0

func (x *CloudStorageConfig) GetBucket() string

func (*CloudStorageConfig) GetFilenameDatetimeFormat added in v1.38.0

func (x *CloudStorageConfig) GetFilenameDatetimeFormat() string

func (*CloudStorageConfig) GetFilenamePrefix added in v1.31.0

func (x *CloudStorageConfig) GetFilenamePrefix() string

func (*CloudStorageConfig) GetFilenameSuffix added in v1.31.0

func (x *CloudStorageConfig) GetFilenameSuffix() string

func (*CloudStorageConfig) GetMaxBytes added in v1.31.0

func (x *CloudStorageConfig) GetMaxBytes() int64

func (*CloudStorageConfig) GetMaxDuration added in v1.31.0

func (x *CloudStorageConfig) GetMaxDuration() *durationpb.Duration

func (*CloudStorageConfig) GetMaxMessages added in v1.41.0

func (x *CloudStorageConfig) GetMaxMessages() int64

func (*CloudStorageConfig) GetOutputFormat added in v1.31.0

func (m *CloudStorageConfig) GetOutputFormat() isCloudStorageConfig_OutputFormat

func (*CloudStorageConfig) GetServiceAccountEmail added in v1.39.0

func (x *CloudStorageConfig) GetServiceAccountEmail() string

func (*CloudStorageConfig) GetState added in v1.31.0

func (*CloudStorageConfig) GetTextConfig added in v1.31.0

func (*CloudStorageConfig) ProtoMessage added in v1.31.0

func (*CloudStorageConfig) ProtoMessage()

func (*CloudStorageConfig) ProtoReflect added in v1.31.0

func (x *CloudStorageConfig) ProtoReflect() protoreflect.Message

func (*CloudStorageConfig) Reset added in v1.31.0

func (x *CloudStorageConfig) Reset()

func (*CloudStorageConfig) String added in v1.31.0

func (x *CloudStorageConfig) String() string

type CloudStorageConfig_AvroConfig added in v1.31.0

type CloudStorageConfig_AvroConfig struct {

	// Optional. When true, write the subscription name, message_id,
	// publish_time, attributes, and ordering_key as additional fields in the
	// output. The subscription name, message_id, and publish_time fields are
	// put in their own fields while all other message properties other than
	// data (for example, an ordering_key, if present) are added as entries in
	// the attributes map.
	WriteMetadata bool `protobuf:"varint,1,opt,name=write_metadata,json=writeMetadata,proto3" json:"write_metadata,omitempty"`
	// Optional. When true, the output Cloud Storage file will be serialized
	// using the topic schema, if it exists.
	UseTopicSchema bool `protobuf:"varint,2,opt,name=use_topic_schema,json=useTopicSchema,proto3" json:"use_topic_schema,omitempty"`
	// contains filtered or unexported fields
}

Configuration for writing message data in Avro format. Message payloads and metadata will be written to files as an Avro binary.

func (*CloudStorageConfig_AvroConfig) Descriptor deprecated added in v1.31.0

func (*CloudStorageConfig_AvroConfig) Descriptor() ([]byte, []int)

Deprecated: Use CloudStorageConfig_AvroConfig.ProtoReflect.Descriptor instead.

func (*CloudStorageConfig_AvroConfig) GetUseTopicSchema added in v1.40.0

func (x *CloudStorageConfig_AvroConfig) GetUseTopicSchema() bool

func (*CloudStorageConfig_AvroConfig) GetWriteMetadata added in v1.31.0

func (x *CloudStorageConfig_AvroConfig) GetWriteMetadata() bool

func (*CloudStorageConfig_AvroConfig) ProtoMessage added in v1.31.0

func (*CloudStorageConfig_AvroConfig) ProtoMessage()

func (*CloudStorageConfig_AvroConfig) ProtoReflect added in v1.31.0

func (*CloudStorageConfig_AvroConfig) Reset added in v1.31.0

func (x *CloudStorageConfig_AvroConfig) Reset()

func (*CloudStorageConfig_AvroConfig) String added in v1.31.0

type CloudStorageConfig_AvroConfig_ added in v1.31.0

type CloudStorageConfig_AvroConfig_ struct {
	// Optional. If set, message data will be written to Cloud Storage in Avro
	// format.
	AvroConfig *CloudStorageConfig_AvroConfig `protobuf:"bytes,5,opt,name=avro_config,json=avroConfig,proto3,oneof"`
}

type CloudStorageConfig_State added in v1.31.0

type CloudStorageConfig_State int32

Possible states for a Cloud Storage subscription.

const (
	// Default value. This value is unused.
	CloudStorageConfig_STATE_UNSPECIFIED CloudStorageConfig_State = 0
	// The subscription can actively send messages to Cloud Storage.
	CloudStorageConfig_ACTIVE CloudStorageConfig_State = 1
	// Cannot write to the Cloud Storage bucket because of permission denied
	// errors.
	CloudStorageConfig_PERMISSION_DENIED CloudStorageConfig_State = 2
	// Cannot write to the Cloud Storage bucket because it does not exist.
	CloudStorageConfig_NOT_FOUND CloudStorageConfig_State = 3
	// Cannot write to the destination because enforce_in_transit is set to true
	// and the destination locations are not in the allowed regions.
	CloudStorageConfig_IN_TRANSIT_LOCATION_RESTRICTION CloudStorageConfig_State = 4
	// Cannot write to the Cloud Storage bucket due to an incompatibility
	// between the topic schema and subscription settings.
	CloudStorageConfig_SCHEMA_MISMATCH CloudStorageConfig_State = 5
)

func (CloudStorageConfig_State) Descriptor added in v1.31.0

func (CloudStorageConfig_State) Enum added in v1.31.0

func (CloudStorageConfig_State) EnumDescriptor deprecated added in v1.31.0

func (CloudStorageConfig_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use CloudStorageConfig_State.Descriptor instead.

func (CloudStorageConfig_State) Number added in v1.31.0

func (CloudStorageConfig_State) String added in v1.31.0

func (x CloudStorageConfig_State) String() string

func (CloudStorageConfig_State) Type added in v1.31.0

type CloudStorageConfig_TextConfig added in v1.31.0

type CloudStorageConfig_TextConfig struct {
	// contains filtered or unexported fields
}

Configuration for writing message data in text format. Message payloads will be written to files as raw text, separated by a newline.

func (*CloudStorageConfig_TextConfig) Descriptor deprecated added in v1.31.0

func (*CloudStorageConfig_TextConfig) Descriptor() ([]byte, []int)

Deprecated: Use CloudStorageConfig_TextConfig.ProtoReflect.Descriptor instead.

func (*CloudStorageConfig_TextConfig) ProtoMessage added in v1.31.0

func (*CloudStorageConfig_TextConfig) ProtoMessage()

func (*CloudStorageConfig_TextConfig) ProtoReflect added in v1.31.0

func (*CloudStorageConfig_TextConfig) Reset added in v1.31.0

func (x *CloudStorageConfig_TextConfig) Reset()

func (*CloudStorageConfig_TextConfig) String added in v1.31.0

type CloudStorageConfig_TextConfig_ added in v1.31.0

type CloudStorageConfig_TextConfig_ struct {
	// Optional. If set, message data will be written to Cloud Storage in text
	// format.
	TextConfig *CloudStorageConfig_TextConfig `protobuf:"bytes,4,opt,name=text_config,json=textConfig,proto3,oneof"`
}

type CommitSchemaRequest added in v1.29.0

type CommitSchemaRequest struct {

	// Required. The name of the schema we are revising.
	// Format is `projects/{project}/schemas/{schema}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The schema revision to commit.
	Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	// contains filtered or unexported fields
}

Request for CommitSchema method.

func (*CommitSchemaRequest) Descriptor deprecated added in v1.29.0

func (*CommitSchemaRequest) Descriptor() ([]byte, []int)

Deprecated: Use CommitSchemaRequest.ProtoReflect.Descriptor instead.

func (*CommitSchemaRequest) GetName added in v1.29.0

func (x *CommitSchemaRequest) GetName() string

func (*CommitSchemaRequest) GetSchema added in v1.29.0

func (x *CommitSchemaRequest) GetSchema() *Schema

func (*CommitSchemaRequest) ProtoMessage added in v1.29.0

func (*CommitSchemaRequest) ProtoMessage()

func (*CommitSchemaRequest) ProtoReflect added in v1.29.0

func (x *CommitSchemaRequest) ProtoReflect() protoreflect.Message

func (*CommitSchemaRequest) Reset added in v1.29.0

func (x *CommitSchemaRequest) Reset()

func (*CommitSchemaRequest) String added in v1.29.0

func (x *CommitSchemaRequest) String() string

type CreateSchemaRequest

type CreateSchemaRequest struct {

	// Required. The name of the project in which to create the schema.
	// Format is `projects/{project-id}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The schema object to create.
	//
	// This schema's `name` parameter is ignored. The schema object returned
	// by CreateSchema will have a `name` made using the given `parent` and
	// `schema_id`.
	Schema *Schema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"`
	// The ID to use for the schema, which will become the final component of
	// the schema's resource name.
	//
	// See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for
	// resource name constraints.
	SchemaId string `protobuf:"bytes,3,opt,name=schema_id,json=schemaId,proto3" json:"schema_id,omitempty"`
	// contains filtered or unexported fields
}

Request for the CreateSchema method.

func (*CreateSchemaRequest) Descriptor deprecated

func (*CreateSchemaRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSchemaRequest.ProtoReflect.Descriptor instead.

func (*CreateSchemaRequest) GetParent

func (x *CreateSchemaRequest) GetParent() string

func (*CreateSchemaRequest) GetSchema

func (x *CreateSchemaRequest) GetSchema() *Schema

func (*CreateSchemaRequest) GetSchemaId

func (x *CreateSchemaRequest) GetSchemaId() string

func (*CreateSchemaRequest) ProtoMessage

func (*CreateSchemaRequest) ProtoMessage()

func (*CreateSchemaRequest) ProtoReflect

func (x *CreateSchemaRequest) ProtoReflect() protoreflect.Message

func (*CreateSchemaRequest) Reset

func (x *CreateSchemaRequest) Reset()

func (*CreateSchemaRequest) String

func (x *CreateSchemaRequest) String() string

type CreateSnapshotRequest

type CreateSnapshotRequest struct {

	// Required. User-provided name for this snapshot. If the name is not provided
	// in the request, the server will assign a random name for this snapshot on
	// the same project as the subscription. Note that for REST API requests, you
	// must specify a name.  See the [resource name
	// rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
	// Format is `projects/{project}/snapshots/{snap}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The subscription whose backlog the snapshot retains.
	// Specifically, the created snapshot is guaranteed to retain:
	//
	//	(a) The existing backlog on the subscription. More precisely, this is
	//	    defined as the messages in the subscription's backlog that are
	//	    unacknowledged upon the successful completion of the
	//	    `CreateSnapshot` request; as well as:
	//	(b) Any messages published to the subscription's topic following the
	//	    successful completion of the CreateSnapshot request.
	//
	// Format is `projects/{project}/subscriptions/{sub}`.
	Subscription string `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// Optional. See [Creating and managing
	// labels](https://cloud.google.com/pubsub/docs/labels).
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

Request for the `CreateSnapshot` method.

func (*CreateSnapshotRequest) Descriptor deprecated

func (*CreateSnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateSnapshotRequest.ProtoReflect.Descriptor instead.

func (*CreateSnapshotRequest) GetLabels

func (x *CreateSnapshotRequest) GetLabels() map[string]string

func (*CreateSnapshotRequest) GetName

func (x *CreateSnapshotRequest) GetName() string

func (*CreateSnapshotRequest) GetSubscription

func (x *CreateSnapshotRequest) GetSubscription() string

func (*CreateSnapshotRequest) ProtoMessage

func (*CreateSnapshotRequest) ProtoMessage()

func (*CreateSnapshotRequest) ProtoReflect

func (x *CreateSnapshotRequest) ProtoReflect() protoreflect.Message

func (*CreateSnapshotRequest) Reset

func (x *CreateSnapshotRequest) Reset()

func (*CreateSnapshotRequest) String

func (x *CreateSnapshotRequest) String() string

type DeadLetterPolicy

type DeadLetterPolicy struct {

	// Optional. The name of the topic to which dead letter messages should be
	// published. Format is `projects/{project}/topics/{topic}`.The Pub/Sub
	// service account associated with the enclosing subscription's parent project
	// (i.e., service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com) must
	// have permission to Publish() to this topic.
	//
	// The operation will fail if the topic does not exist.
	// Users should ensure that there is a subscription attached to this topic
	// since messages published to a topic with no subscriptions are lost.
	DeadLetterTopic string `protobuf:"bytes,1,opt,name=dead_letter_topic,json=deadLetterTopic,proto3" json:"dead_letter_topic,omitempty"`
	// Optional. The maximum number of delivery attempts for any message. The
	// value must be between 5 and 100.
	//
	// The number of delivery attempts is defined as 1 + (the sum of number of
	// NACKs and number of times the acknowledgement deadline has been exceeded
	// for the message).
	//
	// A NACK is any call to ModifyAckDeadline with a 0 deadline. Note that
	// client libraries may automatically extend ack_deadlines.
	//
	// This field will be honored on a best effort basis.
	//
	// If this parameter is 0, a default value of 5 is used.
	MaxDeliveryAttempts int32 `protobuf:"varint,2,opt,name=max_delivery_attempts,json=maxDeliveryAttempts,proto3" json:"max_delivery_attempts,omitempty"`
	// contains filtered or unexported fields
}

Dead lettering is done on a best effort basis. The same message might be dead lettered multiple times.

If validation on any of the fields fails at subscription creation/updation, the create/update subscription request will fail.

func (*DeadLetterPolicy) Descriptor deprecated

func (*DeadLetterPolicy) Descriptor() ([]byte, []int)

Deprecated: Use DeadLetterPolicy.ProtoReflect.Descriptor instead.

func (*DeadLetterPolicy) GetDeadLetterTopic

func (x *DeadLetterPolicy) GetDeadLetterTopic() string

func (*DeadLetterPolicy) GetMaxDeliveryAttempts

func (x *DeadLetterPolicy) GetMaxDeliveryAttempts() int32

func (*DeadLetterPolicy) ProtoMessage

func (*DeadLetterPolicy) ProtoMessage()

func (*DeadLetterPolicy) ProtoReflect

func (x *DeadLetterPolicy) ProtoReflect() protoreflect.Message

func (*DeadLetterPolicy) Reset

func (x *DeadLetterPolicy) Reset()

func (*DeadLetterPolicy) String

func (x *DeadLetterPolicy) String() string

type DeleteSchemaRequest

type DeleteSchemaRequest struct {

	// Required. Name of the schema to delete.
	// Format is `projects/{project}/schemas/{schema}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request for the `DeleteSchema` method.

func (*DeleteSchemaRequest) Descriptor deprecated

func (*DeleteSchemaRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSchemaRequest.ProtoReflect.Descriptor instead.

func (*DeleteSchemaRequest) GetName

func (x *DeleteSchemaRequest) GetName() string

func (*DeleteSchemaRequest) ProtoMessage

func (*DeleteSchemaRequest) ProtoMessage()

func (*DeleteSchemaRequest) ProtoReflect

func (x *DeleteSchemaRequest) ProtoReflect() protoreflect.Message

func (*DeleteSchemaRequest) Reset

func (x *DeleteSchemaRequest) Reset()

func (*DeleteSchemaRequest) String

func (x *DeleteSchemaRequest) String() string

type DeleteSchemaRevisionRequest added in v1.29.0

type DeleteSchemaRevisionRequest struct {

	// Required. The name of the schema revision to be deleted, with a revision ID
	// explicitly included.
	//
	// Example: `projects/123/schemas/my-schema@c7cfa2a8`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Optional. This field is deprecated and should not be used for specifying
	// the revision ID. The revision ID should be specified via the `name`
	// parameter.
	//
	// Deprecated: Marked as deprecated in google/pubsub/v1/schema.proto.
	RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
	// contains filtered or unexported fields
}

Request for the `DeleteSchemaRevision` method.

func (*DeleteSchemaRevisionRequest) Descriptor deprecated added in v1.29.0

func (*DeleteSchemaRevisionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSchemaRevisionRequest.ProtoReflect.Descriptor instead.

func (*DeleteSchemaRevisionRequest) GetName added in v1.29.0

func (x *DeleteSchemaRevisionRequest) GetName() string

func (*DeleteSchemaRevisionRequest) GetRevisionId deprecated added in v1.29.0

func (x *DeleteSchemaRevisionRequest) GetRevisionId() string

Deprecated: Marked as deprecated in google/pubsub/v1/schema.proto.

func (*DeleteSchemaRevisionRequest) ProtoMessage added in v1.29.0

func (*DeleteSchemaRevisionRequest) ProtoMessage()

func (*DeleteSchemaRevisionRequest) ProtoReflect added in v1.29.0

func (*DeleteSchemaRevisionRequest) Reset added in v1.29.0

func (x *DeleteSchemaRevisionRequest) Reset()

func (*DeleteSchemaRevisionRequest) String added in v1.29.0

func (x *DeleteSchemaRevisionRequest) String() string

type DeleteSnapshotRequest

type DeleteSnapshotRequest struct {

	// Required. The name of the snapshot to delete.
	// Format is `projects/{project}/snapshots/{snap}`.
	Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// contains filtered or unexported fields
}

Request for the `DeleteSnapshot` method.

func (*DeleteSnapshotRequest) Descriptor deprecated

func (*DeleteSnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSnapshotRequest.ProtoReflect.Descriptor instead.

func (*DeleteSnapshotRequest) GetSnapshot

func (x *DeleteSnapshotRequest) GetSnapshot() string

func (*DeleteSnapshotRequest) ProtoMessage

func (*DeleteSnapshotRequest) ProtoMessage()

func (*DeleteSnapshotRequest) ProtoReflect

func (x *DeleteSnapshotRequest) ProtoReflect() protoreflect.Message

func (*DeleteSnapshotRequest) Reset

func (x *DeleteSnapshotRequest) Reset()

func (*DeleteSnapshotRequest) String

func (x *DeleteSnapshotRequest) String() string

type DeleteSubscriptionRequest

type DeleteSubscriptionRequest struct {

	// Required. The subscription to delete.
	// Format is `projects/{project}/subscriptions/{sub}`.
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

Request for the DeleteSubscription method.

func (*DeleteSubscriptionRequest) Descriptor deprecated

func (*DeleteSubscriptionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*DeleteSubscriptionRequest) GetSubscription

func (x *DeleteSubscriptionRequest) GetSubscription() string

func (*DeleteSubscriptionRequest) ProtoMessage

func (*DeleteSubscriptionRequest) ProtoMessage()

func (*DeleteSubscriptionRequest) ProtoReflect

func (*DeleteSubscriptionRequest) Reset

func (x *DeleteSubscriptionRequest) Reset()

func (*DeleteSubscriptionRequest) String

func (x *DeleteSubscriptionRequest) String() string

type DeleteTopicRequest

type DeleteTopicRequest struct {

	// Required. Name of the topic to delete.
	// Format is `projects/{project}/topics/{topic}`.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// contains filtered or unexported fields
}

Request for the `DeleteTopic` method.

func (*DeleteTopicRequest) Descriptor deprecated

func (*DeleteTopicRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTopicRequest.ProtoReflect.Descriptor instead.

func (*DeleteTopicRequest) GetTopic

func (x *DeleteTopicRequest) GetTopic() string

func (*DeleteTopicRequest) ProtoMessage

func (*DeleteTopicRequest) ProtoMessage()

func (*DeleteTopicRequest) ProtoReflect

func (x *DeleteTopicRequest) ProtoReflect() protoreflect.Message

func (*DeleteTopicRequest) Reset

func (x *DeleteTopicRequest) Reset()

func (*DeleteTopicRequest) String

func (x *DeleteTopicRequest) String() string

type DetachSubscriptionRequest

type DetachSubscriptionRequest struct {

	// Required. The subscription to detach.
	// Format is `projects/{project}/subscriptions/{subscription}`.
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

Request for the DetachSubscription method.

func (*DetachSubscriptionRequest) Descriptor deprecated

func (*DetachSubscriptionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DetachSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*DetachSubscriptionRequest) GetSubscription

func (x *DetachSubscriptionRequest) GetSubscription() string

func (*DetachSubscriptionRequest) ProtoMessage

func (*DetachSubscriptionRequest) ProtoMessage()

func (*DetachSubscriptionRequest) ProtoReflect

func (*DetachSubscriptionRequest) Reset

func (x *DetachSubscriptionRequest) Reset()

func (*DetachSubscriptionRequest) String

func (x *DetachSubscriptionRequest) String() string

type DetachSubscriptionResponse

type DetachSubscriptionResponse struct {
	// contains filtered or unexported fields
}

Response for the DetachSubscription method. Reserved for future use.

func (*DetachSubscriptionResponse) Descriptor deprecated

func (*DetachSubscriptionResponse) Descriptor() ([]byte, []int)

Deprecated: Use DetachSubscriptionResponse.ProtoReflect.Descriptor instead.

func (*DetachSubscriptionResponse) ProtoMessage

func (*DetachSubscriptionResponse) ProtoMessage()

func (*DetachSubscriptionResponse) ProtoReflect

func (*DetachSubscriptionResponse) Reset

func (x *DetachSubscriptionResponse) Reset()

func (*DetachSubscriptionResponse) String

func (x *DetachSubscriptionResponse) String() string

type Encoding

type Encoding int32

Possible encoding types for messages.

const (
	// Unspecified
	Encoding_ENCODING_UNSPECIFIED Encoding = 0
	// JSON encoding
	Encoding_JSON Encoding = 1
	// Binary encoding, as defined by the schema type. For some schema types,
	// binary encoding may not be available.
	Encoding_BINARY Encoding = 2
)

func (Encoding) Descriptor

func (Encoding) Descriptor() protoreflect.EnumDescriptor

func (Encoding) Enum

func (x Encoding) Enum() *Encoding

func (Encoding) EnumDescriptor deprecated

func (Encoding) EnumDescriptor() ([]byte, []int)

Deprecated: Use Encoding.Descriptor instead.

func (Encoding) Number

func (x Encoding) Number() protoreflect.EnumNumber

func (Encoding) String

func (x Encoding) String() string

func (Encoding) Type

type ExpirationPolicy

type ExpirationPolicy struct {

	// Optional. Specifies the "time-to-live" duration for an associated resource.
	// The resource expires if it is not active for a period of `ttl`. The
	// definition of "activity" depends on the type of the associated resource.
	// The minimum and maximum allowed values for `ttl` depend on the type of the
	// associated resource, as well. If `ttl` is not set, the associated resource
	// never expires.
	Ttl *durationpb.Duration `protobuf:"bytes,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// contains filtered or unexported fields
}

A policy that specifies the conditions for resource expiration (i.e., automatic resource deletion).

func (*ExpirationPolicy) Descriptor deprecated

func (*ExpirationPolicy) Descriptor() ([]byte, []int)

Deprecated: Use ExpirationPolicy.ProtoReflect.Descriptor instead.

func (*ExpirationPolicy) GetTtl

func (x *ExpirationPolicy) GetTtl() *durationpb.Duration

func (*ExpirationPolicy) ProtoMessage

func (*ExpirationPolicy) ProtoMessage()

func (*ExpirationPolicy) ProtoReflect

func (x *ExpirationPolicy) ProtoReflect() protoreflect.Message

func (*ExpirationPolicy) Reset

func (x *ExpirationPolicy) Reset()

func (*ExpirationPolicy) String

func (x *ExpirationPolicy) String() string

type GetSchemaRequest

type GetSchemaRequest struct {

	// Required. The name of the schema to get.
	// Format is `projects/{project}/schemas/{schema}`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The set of fields to return in the response. If not set, returns a Schema
	// with all fields filled out. Set to `BASIC` to omit the `definition`.
	View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=google.pubsub.v1.SchemaView" json:"view,omitempty"`
	// contains filtered or unexported fields
}

Request for the GetSchema method.

func (*GetSchemaRequest) Descriptor deprecated

func (*GetSchemaRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSchemaRequest.ProtoReflect.Descriptor instead.

func (*GetSchemaRequest) GetName

func (x *GetSchemaRequest) GetName() string

func (*GetSchemaRequest) GetView

func (x *GetSchemaRequest) GetView() SchemaView

func (*GetSchemaRequest) ProtoMessage

func (*GetSchemaRequest) ProtoMessage()

func (*GetSchemaRequest) ProtoReflect

func (x *GetSchemaRequest) ProtoReflect() protoreflect.Message

func (*GetSchemaRequest) Reset

func (x *GetSchemaRequest) Reset()

func (*GetSchemaRequest) String

func (x *GetSchemaRequest) String() string

type GetSnapshotRequest

type GetSnapshotRequest struct {

	// Required. The name of the snapshot to get.
	// Format is `projects/{project}/snapshots/{snap}`.
	Snapshot string `protobuf:"bytes,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"`
	// contains filtered or unexported fields
}

Request for the GetSnapshot method.

func (*GetSnapshotRequest) Descriptor deprecated

func (*GetSnapshotRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSnapshotRequest.ProtoReflect.Descriptor instead.

func (*GetSnapshotRequest) GetSnapshot

func (x *GetSnapshotRequest) GetSnapshot() string

func (*GetSnapshotRequest) ProtoMessage

func (*GetSnapshotRequest) ProtoMessage()

func (*GetSnapshotRequest) ProtoReflect

func (x *GetSnapshotRequest) ProtoReflect() protoreflect.Message

func (*GetSnapshotRequest) Reset

func (x *GetSnapshotRequest) Reset()

func (*GetSnapshotRequest) String

func (x *GetSnapshotRequest) String() string

type GetSubscriptionRequest

type GetSubscriptionRequest struct {

	// Required. The name of the subscription to get.
	// Format is `projects/{project}/subscriptions/{sub}`.
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

Request for the GetSubscription method.

func (*GetSubscriptionRequest) Descriptor deprecated

func (*GetSubscriptionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*GetSubscriptionRequest) GetSubscription

func (x *GetSubscriptionRequest) GetSubscription() string

func (*GetSubscriptionRequest) ProtoMessage

func (*GetSubscriptionRequest) ProtoMessage()

func (*GetSubscriptionRequest) ProtoReflect

func (x *GetSubscriptionRequest) ProtoReflect() protoreflect.Message

func (*GetSubscriptionRequest) Reset

func (x *GetSubscriptionRequest) Reset()

func (*GetSubscriptionRequest) String

func (x *GetSubscriptionRequest) String() string

type GetTopicRequest

type GetTopicRequest struct {

	// Required. The name of the topic to get.
	// Format is `projects/{project}/topics/{topic}`.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// contains filtered or unexported fields
}

Request for the GetTopic method.

func (*GetTopicRequest) Descriptor deprecated

func (*GetTopicRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTopicRequest.ProtoReflect.Descriptor instead.

func (*GetTopicRequest) GetTopic

func (x *GetTopicRequest) GetTopic() string

func (*GetTopicRequest) ProtoMessage

func (*GetTopicRequest) ProtoMessage()

func (*GetTopicRequest) ProtoReflect

func (x *GetTopicRequest) ProtoReflect() protoreflect.Message

func (*GetTopicRequest) Reset

func (x *GetTopicRequest) Reset()

func (*GetTopicRequest) String

func (x *GetTopicRequest) String() string

type IngestionDataSourceSettings added in v1.36.0

type IngestionDataSourceSettings struct {

	// Only one source type can have settings set.
	//
	// Types that are assignable to Source:
	//
	//	*IngestionDataSourceSettings_AwsKinesis_
	//	*IngestionDataSourceSettings_CloudStorage_
	Source isIngestionDataSourceSettings_Source `protobuf_oneof:"source"`
	// Optional. Platform Logs settings. If unset, no Platform Logs will be
	// generated.
	PlatformLogsSettings *PlatformLogsSettings `protobuf:"bytes,4,opt,name=platform_logs_settings,json=platformLogsSettings,proto3" json:"platform_logs_settings,omitempty"`
	// contains filtered or unexported fields
}

Settings for an ingestion data source on a topic.

func (*IngestionDataSourceSettings) Descriptor deprecated added in v1.36.0

func (*IngestionDataSourceSettings) Descriptor() ([]byte, []int)

Deprecated: Use IngestionDataSourceSettings.ProtoReflect.Descriptor instead.

func (*IngestionDataSourceSettings) GetAwsKinesis added in v1.36.0

func (*IngestionDataSourceSettings) GetCloudStorage added in v1.44.0

func (*IngestionDataSourceSettings) GetPlatformLogsSettings added in v1.44.0

func (x *IngestionDataSourceSettings) GetPlatformLogsSettings() *PlatformLogsSettings

func (*IngestionDataSourceSettings) GetSource added in v1.36.0

func (m *IngestionDataSourceSettings) GetSource() isIngestionDataSourceSettings_Source

func (*IngestionDataSourceSettings) ProtoMessage added in v1.36.0

func (*IngestionDataSourceSettings) ProtoMessage()

func (*IngestionDataSourceSettings) ProtoReflect added in v1.36.0

func (*IngestionDataSourceSettings) Reset added in v1.36.0

func (x *IngestionDataSourceSettings) Reset()

func (*IngestionDataSourceSettings) String added in v1.36.0

func (x *IngestionDataSourceSettings) String() string

type IngestionDataSourceSettings_AwsKinesis added in v1.36.0

type IngestionDataSourceSettings_AwsKinesis struct {

	// Output only. An output-only field that indicates the state of the Kinesis
	// ingestion source.
	State IngestionDataSourceSettings_AwsKinesis_State `` /* 131-byte string literal not displayed */
	// Required. The Kinesis stream ARN to ingest data from.
	StreamArn string `protobuf:"bytes,2,opt,name=stream_arn,json=streamArn,proto3" json:"stream_arn,omitempty"`
	// Required. The Kinesis consumer ARN to used for ingestion in Enhanced
	// Fan-Out mode. The consumer must be already created and ready to be used.
	ConsumerArn string `protobuf:"bytes,3,opt,name=consumer_arn,json=consumerArn,proto3" json:"consumer_arn,omitempty"`
	// Required. AWS role ARN to be used for Federated Identity authentication
	// with Kinesis. Check the Pub/Sub docs for how to set up this role and the
	// required permissions that need to be attached to it.
	AwsRoleArn string `protobuf:"bytes,4,opt,name=aws_role_arn,json=awsRoleArn,proto3" json:"aws_role_arn,omitempty"`
	// Required. The GCP service account to be used for Federated Identity
	// authentication with Kinesis (via a `AssumeRoleWithWebIdentity` call for
	// the provided role). The `aws_role_arn` must be set up with
	// `accounts.google.com:sub` equals to this service account number.
	GcpServiceAccount string `protobuf:"bytes,5,opt,name=gcp_service_account,json=gcpServiceAccount,proto3" json:"gcp_service_account,omitempty"`
	// contains filtered or unexported fields
}

Ingestion settings for Amazon Kinesis Data Streams.

func (*IngestionDataSourceSettings_AwsKinesis) Descriptor deprecated added in v1.36.0

func (*IngestionDataSourceSettings_AwsKinesis) Descriptor() ([]byte, []int)

Deprecated: Use IngestionDataSourceSettings_AwsKinesis.ProtoReflect.Descriptor instead.

func (*IngestionDataSourceSettings_AwsKinesis) GetAwsRoleArn added in v1.36.0

func (*IngestionDataSourceSettings_AwsKinesis) GetConsumerArn added in v1.36.0

func (x *IngestionDataSourceSettings_AwsKinesis) GetConsumerArn() string

func (*IngestionDataSourceSettings_AwsKinesis) GetGcpServiceAccount added in v1.36.0

func (x *IngestionDataSourceSettings_AwsKinesis) GetGcpServiceAccount() string

func (*IngestionDataSourceSettings_AwsKinesis) GetState added in v1.36.0

func (*IngestionDataSourceSettings_AwsKinesis) GetStreamArn added in v1.36.0

func (*IngestionDataSourceSettings_AwsKinesis) ProtoMessage added in v1.36.0

func (*IngestionDataSourceSettings_AwsKinesis) ProtoReflect added in v1.36.0

func (*IngestionDataSourceSettings_AwsKinesis) Reset added in v1.36.0

func (*IngestionDataSourceSettings_AwsKinesis) String added in v1.36.0

type IngestionDataSourceSettings_AwsKinesis_ added in v1.36.0

type IngestionDataSourceSettings_AwsKinesis_ struct {
	// Optional. Amazon Kinesis Data Streams.
	AwsKinesis *IngestionDataSourceSettings_AwsKinesis `protobuf:"bytes,1,opt,name=aws_kinesis,json=awsKinesis,proto3,oneof"`
}

type IngestionDataSourceSettings_AwsKinesis_State added in v1.36.0

type IngestionDataSourceSettings_AwsKinesis_State int32

Possible states for ingestion from Amazon Kinesis Data Streams.

const (
	// Default value. This value is unused.
	IngestionDataSourceSettings_AwsKinesis_STATE_UNSPECIFIED IngestionDataSourceSettings_AwsKinesis_State = 0
	// Ingestion is active.
	IngestionDataSourceSettings_AwsKinesis_ACTIVE IngestionDataSourceSettings_AwsKinesis_State = 1
	// Permission denied encountered while consuming data from Kinesis.
	// This can happen if:
	//   - The provided `aws_role_arn` does not exist or does not have the
	//     appropriate permissions attached.
	//   - The provided `aws_role_arn` is not set up properly for Identity
	//     Federation using `gcp_service_account`.
	//   - The Pub/Sub SA is not granted the
	//     `iam.serviceAccounts.getOpenIdToken` permission on
	//     `gcp_service_account`.
	IngestionDataSourceSettings_AwsKinesis_KINESIS_PERMISSION_DENIED IngestionDataSourceSettings_AwsKinesis_State = 2
	// Permission denied encountered while publishing to the topic. This can
	// happen if the Pub/Sub SA has not been granted the [appropriate publish
	// permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
	IngestionDataSourceSettings_AwsKinesis_PUBLISH_PERMISSION_DENIED IngestionDataSourceSettings_AwsKinesis_State = 3
	// The Kinesis stream does not exist.
	IngestionDataSourceSettings_AwsKinesis_STREAM_NOT_FOUND IngestionDataSourceSettings_AwsKinesis_State = 4
	// The Kinesis consumer does not exist.
	IngestionDataSourceSettings_AwsKinesis_CONSUMER_NOT_FOUND IngestionDataSourceSettings_AwsKinesis_State = 5
)

func (IngestionDataSourceSettings_AwsKinesis_State) Descriptor added in v1.36.0

func (IngestionDataSourceSettings_AwsKinesis_State) Enum added in v1.36.0

func (IngestionDataSourceSettings_AwsKinesis_State) EnumDescriptor deprecated added in v1.36.0

func (IngestionDataSourceSettings_AwsKinesis_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use IngestionDataSourceSettings_AwsKinesis_State.Descriptor instead.

func (IngestionDataSourceSettings_AwsKinesis_State) Number added in v1.36.0

func (IngestionDataSourceSettings_AwsKinesis_State) String added in v1.36.0

func (IngestionDataSourceSettings_AwsKinesis_State) Type added in v1.36.0

type IngestionDataSourceSettings_CloudStorage added in v1.44.0

type IngestionDataSourceSettings_CloudStorage struct {

	// Output only. An output-only field that indicates the state of the Cloud
	// Storage ingestion source.
	State IngestionDataSourceSettings_CloudStorage_State `` /* 133-byte string literal not displayed */
	// Optional. Cloud Storage bucket. The bucket name must be without any
	// prefix like "gs://". See the [bucket naming requirements]
	// (https://cloud.google.com/storage/docs/buckets#naming).
	Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// Defaults to text format.
	//
	// Types that are assignable to InputFormat:
	//
	//	*IngestionDataSourceSettings_CloudStorage_TextFormat_
	//	*IngestionDataSourceSettings_CloudStorage_AvroFormat_
	//	*IngestionDataSourceSettings_CloudStorage_PubsubAvroFormat
	InputFormat isIngestionDataSourceSettings_CloudStorage_InputFormat `protobuf_oneof:"input_format"`
	// Optional. Only objects with a larger or equal creation timestamp will be
	// ingested.
	MinimumObjectCreateTime *timestamppb.Timestamp `` /* 134-byte string literal not displayed */
	// Optional. Glob pattern used to match objects that will be ingested. If
	// unset, all objects will be ingested. See the [supported
	// patterns](https://cloud.google.com/storage/docs/json_api/v1/objects/list#list-objects-and-prefixes-using-glob).
	MatchGlob string `protobuf:"bytes,9,opt,name=match_glob,json=matchGlob,proto3" json:"match_glob,omitempty"`
	// contains filtered or unexported fields
}

Ingestion settings for Cloud Storage.

func (*IngestionDataSourceSettings_CloudStorage) Descriptor deprecated added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) Descriptor() ([]byte, []int)

Deprecated: Use IngestionDataSourceSettings_CloudStorage.ProtoReflect.Descriptor instead.

func (*IngestionDataSourceSettings_CloudStorage) GetAvroFormat added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) GetBucket added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) GetInputFormat added in v1.44.0

func (m *IngestionDataSourceSettings_CloudStorage) GetInputFormat() isIngestionDataSourceSettings_CloudStorage_InputFormat

func (*IngestionDataSourceSettings_CloudStorage) GetMatchGlob added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) GetMinimumObjectCreateTime added in v1.44.0

func (x *IngestionDataSourceSettings_CloudStorage) GetMinimumObjectCreateTime() *timestamppb.Timestamp

func (*IngestionDataSourceSettings_CloudStorage) GetPubsubAvroFormat added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) GetState added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) GetTextFormat added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) ProtoMessage added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) ProtoReflect added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) Reset added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage) String added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_ added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_ struct {
	// Optional. Cloud Storage.
	CloudStorage *IngestionDataSourceSettings_CloudStorage `protobuf:"bytes,2,opt,name=cloud_storage,json=cloudStorage,proto3,oneof"`
}

type IngestionDataSourceSettings_CloudStorage_AvroFormat added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_AvroFormat struct {
	// contains filtered or unexported fields
}

Configuration for reading Cloud Storage data in Avro binary format. The bytes of each object will be set to the `data` field of a Pub/Sub message.

func (*IngestionDataSourceSettings_CloudStorage_AvroFormat) Descriptor deprecated added in v1.44.0

Deprecated: Use IngestionDataSourceSettings_CloudStorage_AvroFormat.ProtoReflect.Descriptor instead.

func (*IngestionDataSourceSettings_CloudStorage_AvroFormat) ProtoMessage added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_AvroFormat) ProtoReflect added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_AvroFormat) Reset added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_AvroFormat) String added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_AvroFormat_ added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_AvroFormat_ struct {
	// Optional. Data from Cloud Storage will be interpreted in Avro format.
	AvroFormat *IngestionDataSourceSettings_CloudStorage_AvroFormat `protobuf:"bytes,4,opt,name=avro_format,json=avroFormat,proto3,oneof"`
}

type IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat struct {
	// contains filtered or unexported fields
}

Configuration for reading Cloud Storage data written via [Cloud Storage subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage). The data and attributes fields of the originally exported Pub/Sub message will be restored when publishing.

func (*IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat) Descriptor deprecated added in v1.44.0

Deprecated: Use IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat.ProtoReflect.Descriptor instead.

func (*IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat) ProtoMessage added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat) ProtoReflect added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat) Reset added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat) String added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_PubsubAvroFormat added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_PubsubAvroFormat struct {
	// Optional. It will be assumed data from Cloud Storage was written via
	// [Cloud Storage
	// subscriptions](https://cloud.google.com/pubsub/docs/cloudstorage).
	PubsubAvroFormat *IngestionDataSourceSettings_CloudStorage_PubSubAvroFormat `protobuf:"bytes,5,opt,name=pubsub_avro_format,json=pubsubAvroFormat,proto3,oneof"`
}

type IngestionDataSourceSettings_CloudStorage_State added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_State int32

Possible states for ingestion from Cloud Storage.

const (
	// Default value. This value is unused.
	IngestionDataSourceSettings_CloudStorage_STATE_UNSPECIFIED IngestionDataSourceSettings_CloudStorage_State = 0
	// Ingestion is active.
	IngestionDataSourceSettings_CloudStorage_ACTIVE IngestionDataSourceSettings_CloudStorage_State = 1
	// Permission denied encountered while calling the Cloud Storage API. This
	// can happen if the Pub/Sub SA has not been granted the
	// [appropriate
	// permissions](https://cloud.google.com/storage/docs/access-control/iam-permissions):
	// - storage.objects.list: to list the objects in a bucket.
	// - storage.objects.get: to read the objects in a bucket.
	// - storage.buckets.get: to verify the bucket exists.
	IngestionDataSourceSettings_CloudStorage_CLOUD_STORAGE_PERMISSION_DENIED IngestionDataSourceSettings_CloudStorage_State = 2
	// Permission denied encountered while publishing to the topic. This can
	// happen if the Pub/Sub SA has not been granted the [appropriate publish
	// permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
	IngestionDataSourceSettings_CloudStorage_PUBLISH_PERMISSION_DENIED IngestionDataSourceSettings_CloudStorage_State = 3
	// The provided Cloud Storage bucket doesn't exist.
	IngestionDataSourceSettings_CloudStorage_BUCKET_NOT_FOUND IngestionDataSourceSettings_CloudStorage_State = 4
	// The Cloud Storage bucket has too many objects, ingestion will be
	// paused.
	IngestionDataSourceSettings_CloudStorage_TOO_MANY_OBJECTS IngestionDataSourceSettings_CloudStorage_State = 5
)

func (IngestionDataSourceSettings_CloudStorage_State) Descriptor added in v1.44.0

func (IngestionDataSourceSettings_CloudStorage_State) Enum added in v1.44.0

func (IngestionDataSourceSettings_CloudStorage_State) EnumDescriptor deprecated added in v1.44.0

Deprecated: Use IngestionDataSourceSettings_CloudStorage_State.Descriptor instead.

func (IngestionDataSourceSettings_CloudStorage_State) Number added in v1.44.0

func (IngestionDataSourceSettings_CloudStorage_State) String added in v1.44.0

func (IngestionDataSourceSettings_CloudStorage_State) Type added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_TextFormat added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_TextFormat struct {

	// Optional. When unset, '\n' is used.
	Delimiter *string `protobuf:"bytes,1,opt,name=delimiter,proto3,oneof" json:"delimiter,omitempty"`
	// contains filtered or unexported fields
}

Configuration for reading Cloud Storage data in text format. Each line of text as specified by the delimiter will be set to the `data` field of a Pub/Sub message.

func (*IngestionDataSourceSettings_CloudStorage_TextFormat) Descriptor deprecated added in v1.44.0

Deprecated: Use IngestionDataSourceSettings_CloudStorage_TextFormat.ProtoReflect.Descriptor instead.

func (*IngestionDataSourceSettings_CloudStorage_TextFormat) GetDelimiter added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_TextFormat) ProtoMessage added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_TextFormat) ProtoReflect added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_TextFormat) Reset added in v1.44.0

func (*IngestionDataSourceSettings_CloudStorage_TextFormat) String added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_TextFormat_ added in v1.44.0

type IngestionDataSourceSettings_CloudStorage_TextFormat_ struct {
	// Optional. Data from Cloud Storage will be interpreted as text.
	TextFormat *IngestionDataSourceSettings_CloudStorage_TextFormat `protobuf:"bytes,3,opt,name=text_format,json=textFormat,proto3,oneof"`
}

type IngestionFailureEvent added in v1.45.0

type IngestionFailureEvent struct {

	// Required. Name of the import topic. Format is:
	// projects/{project_name}/topics/{topic_name}.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// Required. Error details explaining why ingestion to Pub/Sub has failed.
	ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// Types that are assignable to Failure:
	//
	//	*IngestionFailureEvent_CloudStorageFailure_
	Failure isIngestionFailureEvent_Failure `protobuf_oneof:"failure"`
	// contains filtered or unexported fields
}

Payload of the Platform Log entry sent when a failure is encountered while ingesting.

func (*IngestionFailureEvent) Descriptor deprecated added in v1.45.0

func (*IngestionFailureEvent) Descriptor() ([]byte, []int)

Deprecated: Use IngestionFailureEvent.ProtoReflect.Descriptor instead.

func (*IngestionFailureEvent) GetCloudStorageFailure added in v1.45.0

func (*IngestionFailureEvent) GetErrorMessage added in v1.45.0

func (x *IngestionFailureEvent) GetErrorMessage() string

func (*IngestionFailureEvent) GetFailure added in v1.45.0

func (m *IngestionFailureEvent) GetFailure() isIngestionFailureEvent_Failure

func (*IngestionFailureEvent) GetTopic added in v1.45.0

func (x *IngestionFailureEvent) GetTopic() string

func (*IngestionFailureEvent) ProtoMessage added in v1.45.0

func (*IngestionFailureEvent) ProtoMessage()

func (*IngestionFailureEvent) ProtoReflect added in v1.45.0

func (x *IngestionFailureEvent) ProtoReflect() protoreflect.Message

func (*IngestionFailureEvent) Reset added in v1.45.0

func (x *IngestionFailureEvent) Reset()

func (*IngestionFailureEvent) String added in v1.45.0

func (x *IngestionFailureEvent) String() string

type IngestionFailureEvent_ApiViolationReason added in v1.45.0

type IngestionFailureEvent_ApiViolationReason struct {
	// contains filtered or unexported fields
}

Specifies the reason why some data may have been left out of the desired Pub/Sub message due to the API message limits (https://cloud.google.com/pubsub/quotas#resource_limits). For example, when the number of attributes is larger than 100, the number of attributes is truncated to 100 to respect the limit on the attribute count. Other attribute limits are treated similarly. When the size of the desired message would've been larger than 10MB, the message won't be published at all, and ingestion of the subsequent messages will proceed as normal.

func (*IngestionFailureEvent_ApiViolationReason) Descriptor deprecated added in v1.45.0

func (*IngestionFailureEvent_ApiViolationReason) Descriptor() ([]byte, []int)

Deprecated: Use IngestionFailureEvent_ApiViolationReason.ProtoReflect.Descriptor instead.

func (*IngestionFailureEvent_ApiViolationReason) ProtoMessage added in v1.45.0

func (*IngestionFailureEvent_ApiViolationReason) ProtoReflect added in v1.45.0

func (*IngestionFailureEvent_ApiViolationReason) Reset added in v1.45.0

func (*IngestionFailureEvent_ApiViolationReason) String added in v1.45.0

type IngestionFailureEvent_AvroFailureReason added in v1.45.0

type IngestionFailureEvent_AvroFailureReason struct {
	// contains filtered or unexported fields
}

Set when an Avro file is unsupported or its format is not valid. When this occurs, one or more Avro objects won't be ingested.

func (*IngestionFailureEvent_AvroFailureReason) Descriptor deprecated added in v1.45.0

func (*IngestionFailureEvent_AvroFailureReason) Descriptor() ([]byte, []int)

Deprecated: Use IngestionFailureEvent_AvroFailureReason.ProtoReflect.Descriptor instead.

func (*IngestionFailureEvent_AvroFailureReason) ProtoMessage added in v1.45.0

func (*IngestionFailureEvent_AvroFailureReason) ProtoReflect added in v1.45.0

func (*IngestionFailureEvent_AvroFailureReason) Reset added in v1.45.0

func (*IngestionFailureEvent_AvroFailureReason) String added in v1.45.0

type IngestionFailureEvent_CloudStorageFailure added in v1.45.0

type IngestionFailureEvent_CloudStorageFailure struct {

	// Optional. Name of the Cloud Storage bucket used for ingestion.
	Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// Optional. Name of the Cloud Storage object which contained the section
	// that couldn't be ingested.
	ObjectName string `protobuf:"bytes,2,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"`
	// Optional. Generation of the Cloud Storage object which contained the
	// section that couldn't be ingested.
	ObjectGeneration int64 `protobuf:"varint,3,opt,name=object_generation,json=objectGeneration,proto3" json:"object_generation,omitempty"`
	// Reason why ingestion failed for the specified object.
	//
	// Types that are assignable to Reason:
	//
	//	*IngestionFailureEvent_CloudStorageFailure_AvroFailureReason
	//	*IngestionFailureEvent_CloudStorageFailure_ApiViolationReason
	Reason isIngestionFailureEvent_CloudStorageFailure_Reason `protobuf_oneof:"reason"`
	// contains filtered or unexported fields
}

Failure when ingesting from a Cloud Storage source.

func (*IngestionFailureEvent_CloudStorageFailure) Descriptor deprecated added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) Descriptor() ([]byte, []int)

Deprecated: Use IngestionFailureEvent_CloudStorageFailure.ProtoReflect.Descriptor instead.

func (*IngestionFailureEvent_CloudStorageFailure) GetApiViolationReason added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) GetAvroFailureReason added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) GetBucket added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) GetObjectGeneration added in v1.45.0

func (x *IngestionFailureEvent_CloudStorageFailure) GetObjectGeneration() int64

func (*IngestionFailureEvent_CloudStorageFailure) GetObjectName added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) GetReason added in v1.45.0

func (m *IngestionFailureEvent_CloudStorageFailure) GetReason() isIngestionFailureEvent_CloudStorageFailure_Reason

func (*IngestionFailureEvent_CloudStorageFailure) ProtoMessage added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) ProtoReflect added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) Reset added in v1.45.0

func (*IngestionFailureEvent_CloudStorageFailure) String added in v1.45.0

type IngestionFailureEvent_CloudStorageFailure_ added in v1.45.0

type IngestionFailureEvent_CloudStorageFailure_ struct {
	// Optional. Failure when ingesting from Cloud Storage.
	CloudStorageFailure *IngestionFailureEvent_CloudStorageFailure `protobuf:"bytes,3,opt,name=cloud_storage_failure,json=cloudStorageFailure,proto3,oneof"`
}

type IngestionFailureEvent_CloudStorageFailure_ApiViolationReason added in v1.45.0

type IngestionFailureEvent_CloudStorageFailure_ApiViolationReason struct {
	// Optional. The Pub/Sub API limits prevented the desired message from
	// being published.
	ApiViolationReason *IngestionFailureEvent_ApiViolationReason `protobuf:"bytes,6,opt,name=api_violation_reason,json=apiViolationReason,proto3,oneof"`
}

type IngestionFailureEvent_CloudStorageFailure_AvroFailureReason added in v1.45.0

type IngestionFailureEvent_CloudStorageFailure_AvroFailureReason struct {
	// Optional. Failure encountered when parsing an Avro file.
	AvroFailureReason *IngestionFailureEvent_AvroFailureReason `protobuf:"bytes,5,opt,name=avro_failure_reason,json=avroFailureReason,proto3,oneof"`
}

type ListSchemaRevisionsRequest added in v1.29.0

type ListSchemaRevisionsRequest struct {

	// Required. The name of the schema to list revisions for.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The set of Schema fields to return in the response. If not set, returns
	// Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
	// retrieve all fields.
	View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=google.pubsub.v1.SchemaView" json:"view,omitempty"`
	// The maximum number of revisions to return per page.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The page token, received from a previous ListSchemaRevisions call.
	// Provide this to retrieve the subsequent page.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for the `ListSchemaRevisions` method.

func (*ListSchemaRevisionsRequest) Descriptor deprecated added in v1.29.0

func (*ListSchemaRevisionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSchemaRevisionsRequest.ProtoReflect.Descriptor instead.

func (*ListSchemaRevisionsRequest) GetName added in v1.29.0

func (x *ListSchemaRevisionsRequest) GetName() string

func (*ListSchemaRevisionsRequest) GetPageSize added in v1.29.0

func (x *ListSchemaRevisionsRequest) GetPageSize() int32

func (*ListSchemaRevisionsRequest) GetPageToken added in v1.29.0

func (x *ListSchemaRevisionsRequest) GetPageToken() string

func (*ListSchemaRevisionsRequest) GetView added in v1.29.0

func (*ListSchemaRevisionsRequest) ProtoMessage added in v1.29.0

func (*ListSchemaRevisionsRequest) ProtoMessage()

func (*ListSchemaRevisionsRequest) ProtoReflect added in v1.29.0

func (*ListSchemaRevisionsRequest) Reset added in v1.29.0

func (x *ListSchemaRevisionsRequest) Reset()

func (*ListSchemaRevisionsRequest) String added in v1.29.0

func (x *ListSchemaRevisionsRequest) String() string

type ListSchemaRevisionsResponse added in v1.29.0

type ListSchemaRevisionsResponse struct {

	// The revisions of the schema.
	Schemas []*Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
	// A token that can be sent as `page_token` to retrieve the next page.
	// If this field is empty, there are no subsequent pages.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for the `ListSchemaRevisions` method.

func (*ListSchemaRevisionsResponse) Descriptor deprecated added in v1.29.0

func (*ListSchemaRevisionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSchemaRevisionsResponse.ProtoReflect.Descriptor instead.

func (*ListSchemaRevisionsResponse) GetNextPageToken added in v1.29.0

func (x *ListSchemaRevisionsResponse) GetNextPageToken() string

func (*ListSchemaRevisionsResponse) GetSchemas added in v1.29.0

func (x *ListSchemaRevisionsResponse) GetSchemas() []*Schema

func (*ListSchemaRevisionsResponse) ProtoMessage added in v1.29.0

func (*ListSchemaRevisionsResponse) ProtoMessage()

func (*ListSchemaRevisionsResponse) ProtoReflect added in v1.29.0

func (*ListSchemaRevisionsResponse) Reset added in v1.29.0

func (x *ListSchemaRevisionsResponse) Reset()

func (*ListSchemaRevisionsResponse) String added in v1.29.0

func (x *ListSchemaRevisionsResponse) String() string

type ListSchemasRequest

type ListSchemasRequest struct {

	// Required. The name of the project in which to list schemas.
	// Format is `projects/{project-id}`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The set of Schema fields to return in the response. If not set, returns
	// Schemas with `name` and `type`, but not `definition`. Set to `FULL` to
	// retrieve all fields.
	View SchemaView `protobuf:"varint,2,opt,name=view,proto3,enum=google.pubsub.v1.SchemaView" json:"view,omitempty"`
	// Maximum number of schemas to return.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The value returned by the last `ListSchemasResponse`; indicates that
	// this is a continuation of a prior `ListSchemas` call, and that the
	// system should return the next page of data.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for the `ListSchemas` method.

func (*ListSchemasRequest) Descriptor deprecated

func (*ListSchemasRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSchemasRequest.ProtoReflect.Descriptor instead.

func (*ListSchemasRequest) GetPageSize

func (x *ListSchemasRequest) GetPageSize() int32

func (*ListSchemasRequest) GetPageToken

func (x *ListSchemasRequest) GetPageToken() string

func (*ListSchemasRequest) GetParent

func (x *ListSchemasRequest) GetParent() string

func (*ListSchemasRequest) GetView

func (x *ListSchemasRequest) GetView() SchemaView

func (*ListSchemasRequest) ProtoMessage

func (*ListSchemasRequest) ProtoMessage()

func (*ListSchemasRequest) ProtoReflect

func (x *ListSchemasRequest) ProtoReflect() protoreflect.Message

func (*ListSchemasRequest) Reset

func (x *ListSchemasRequest) Reset()

func (*ListSchemasRequest) String

func (x *ListSchemasRequest) String() string

type ListSchemasResponse

type ListSchemasResponse struct {

	// The resulting schemas.
	Schemas []*Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
	// If not empty, indicates that there may be more schemas that match the
	// request; this value should be passed in a new `ListSchemasRequest`.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for the `ListSchemas` method.

func (*ListSchemasResponse) Descriptor deprecated

func (*ListSchemasResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSchemasResponse.ProtoReflect.Descriptor instead.

func (*ListSchemasResponse) GetNextPageToken

func (x *ListSchemasResponse) GetNextPageToken() string

func (*ListSchemasResponse) GetSchemas

func (x *ListSchemasResponse) GetSchemas() []*Schema

func (*ListSchemasResponse) ProtoMessage

func (*ListSchemasResponse) ProtoMessage()

func (*ListSchemasResponse) ProtoReflect

func (x *ListSchemasResponse) ProtoReflect() protoreflect.Message

func (*ListSchemasResponse) Reset

func (x *ListSchemasResponse) Reset()

func (*ListSchemasResponse) String

func (x *ListSchemasResponse) String() string

type ListSnapshotsRequest

type ListSnapshotsRequest struct {

	// Required. The name of the project in which to list snapshots.
	// Format is `projects/{project-id}`.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Optional. Maximum number of snapshots to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The value returned by the last `ListSnapshotsResponse`; indicates
	// that this is a continuation of a prior `ListSnapshots` call, and that the
	// system should return the next page of data.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for the `ListSnapshots` method.

func (*ListSnapshotsRequest) Descriptor deprecated

func (*ListSnapshotsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSnapshotsRequest.ProtoReflect.Descriptor instead.

func (*ListSnapshotsRequest) GetPageSize

func (x *ListSnapshotsRequest) GetPageSize() int32

func (*ListSnapshotsRequest) GetPageToken

func (x *ListSnapshotsRequest) GetPageToken() string

func (*ListSnapshotsRequest) GetProject

func (x *ListSnapshotsRequest) GetProject() string

func (*ListSnapshotsRequest) ProtoMessage

func (*ListSnapshotsRequest) ProtoMessage()

func (*ListSnapshotsRequest) ProtoReflect

func (x *ListSnapshotsRequest) ProtoReflect() protoreflect.Message

func (*ListSnapshotsRequest) Reset

func (x *ListSnapshotsRequest) Reset()

func (*ListSnapshotsRequest) String

func (x *ListSnapshotsRequest) String() string

type ListSnapshotsResponse

type ListSnapshotsResponse struct {

	// Optional. The resulting snapshots.
	Snapshots []*Snapshot `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
	// Optional. If not empty, indicates that there may be more snapshot that
	// match the request; this value should be passed in a new
	// `ListSnapshotsRequest`.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for the `ListSnapshots` method.

func (*ListSnapshotsResponse) Descriptor deprecated

func (*ListSnapshotsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSnapshotsResponse.ProtoReflect.Descriptor instead.

func (*ListSnapshotsResponse) GetNextPageToken

func (x *ListSnapshotsResponse) GetNextPageToken() string

func (*ListSnapshotsResponse) GetSnapshots

func (x *ListSnapshotsResponse) GetSnapshots() []*Snapshot

func (*ListSnapshotsResponse) ProtoMessage

func (*ListSnapshotsResponse) ProtoMessage()

func (*ListSnapshotsResponse) ProtoReflect

func (x *ListSnapshotsResponse) ProtoReflect() protoreflect.Message

func (*ListSnapshotsResponse) Reset

func (x *ListSnapshotsResponse) Reset()

func (*ListSnapshotsResponse) String

func (x *ListSnapshotsResponse) String() string

type ListSubscriptionsRequest

type ListSubscriptionsRequest struct {

	// Required. The name of the project in which to list subscriptions.
	// Format is `projects/{project-id}`.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Optional. Maximum number of subscriptions to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The value returned by the last `ListSubscriptionsResponse`;
	// indicates that this is a continuation of a prior `ListSubscriptions` call,
	// and that the system should return the next page of data.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for the `ListSubscriptions` method.

func (*ListSubscriptionsRequest) Descriptor deprecated

func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSubscriptionsRequest.ProtoReflect.Descriptor instead.

func (*ListSubscriptionsRequest) GetPageSize

func (x *ListSubscriptionsRequest) GetPageSize() int32

func (*ListSubscriptionsRequest) GetPageToken

func (x *ListSubscriptionsRequest) GetPageToken() string

func (*ListSubscriptionsRequest) GetProject

func (x *ListSubscriptionsRequest) GetProject() string

func (*ListSubscriptionsRequest) ProtoMessage

func (*ListSubscriptionsRequest) ProtoMessage()

func (*ListSubscriptionsRequest) ProtoReflect

func (x *ListSubscriptionsRequest) ProtoReflect() protoreflect.Message

func (*ListSubscriptionsRequest) Reset

func (x *ListSubscriptionsRequest) Reset()

func (*ListSubscriptionsRequest) String

func (x *ListSubscriptionsRequest) String() string

type ListSubscriptionsResponse

type ListSubscriptionsResponse struct {

	// Optional. The subscriptions that match the request.
	Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// Optional. If not empty, indicates that there may be more subscriptions that
	// match the request; this value should be passed in a new
	// `ListSubscriptionsRequest` to get more subscriptions.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for the `ListSubscriptions` method.

func (*ListSubscriptionsResponse) Descriptor deprecated

func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSubscriptionsResponse.ProtoReflect.Descriptor instead.

func (*ListSubscriptionsResponse) GetNextPageToken

func (x *ListSubscriptionsResponse) GetNextPageToken() string

func (*ListSubscriptionsResponse) GetSubscriptions

func (x *ListSubscriptionsResponse) GetSubscriptions() []*Subscription

func (*ListSubscriptionsResponse) ProtoMessage

func (*ListSubscriptionsResponse) ProtoMessage()

func (*ListSubscriptionsResponse) ProtoReflect

func (*ListSubscriptionsResponse) Reset

func (x *ListSubscriptionsResponse) Reset()

func (*ListSubscriptionsResponse) String

func (x *ListSubscriptionsResponse) String() string

type ListTopicSnapshotsRequest

type ListTopicSnapshotsRequest struct {

	// Required. The name of the topic that snapshots are attached to.
	// Format is `projects/{project}/topics/{topic}`.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// Optional. Maximum number of snapshot names to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The value returned by the last `ListTopicSnapshotsResponse`;
	// indicates that this is a continuation of a prior `ListTopicSnapshots` call,
	// and that the system should return the next page of data.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for the `ListTopicSnapshots` method.

func (*ListTopicSnapshotsRequest) Descriptor deprecated

func (*ListTopicSnapshotsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTopicSnapshotsRequest.ProtoReflect.Descriptor instead.

func (*ListTopicSnapshotsRequest) GetPageSize

func (x *ListTopicSnapshotsRequest) GetPageSize() int32

func (*ListTopicSnapshotsRequest) GetPageToken

func (x *ListTopicSnapshotsRequest) GetPageToken() string

func (*ListTopicSnapshotsRequest) GetTopic

func (x *ListTopicSnapshotsRequest) GetTopic() string

func (*ListTopicSnapshotsRequest) ProtoMessage

func (*ListTopicSnapshotsRequest) ProtoMessage()

func (*ListTopicSnapshotsRequest) ProtoReflect

func (*ListTopicSnapshotsRequest) Reset

func (x *ListTopicSnapshotsRequest) Reset()

func (*ListTopicSnapshotsRequest) String

func (x *ListTopicSnapshotsRequest) String() string

type ListTopicSnapshotsResponse

type ListTopicSnapshotsResponse struct {

	// Optional. The names of the snapshots that match the request.
	Snapshots []string `protobuf:"bytes,1,rep,name=snapshots,proto3" json:"snapshots,omitempty"`
	// Optional. If not empty, indicates that there may be more snapshots that
	// match the request; this value should be passed in a new
	// `ListTopicSnapshotsRequest` to get more snapshots.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for the `ListTopicSnapshots` method.

func (*ListTopicSnapshotsResponse) Descriptor deprecated

func (*ListTopicSnapshotsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTopicSnapshotsResponse.ProtoReflect.Descriptor instead.

func (*ListTopicSnapshotsResponse) GetNextPageToken

func (x *ListTopicSnapshotsResponse) GetNextPageToken() string

func (*ListTopicSnapshotsResponse) GetSnapshots

func (x *ListTopicSnapshotsResponse) GetSnapshots() []string

func (*ListTopicSnapshotsResponse) ProtoMessage

func (*ListTopicSnapshotsResponse) ProtoMessage()

func (*ListTopicSnapshotsResponse) ProtoReflect

func (*ListTopicSnapshotsResponse) Reset

func (x *ListTopicSnapshotsResponse) Reset()

func (*ListTopicSnapshotsResponse) String

func (x *ListTopicSnapshotsResponse) String() string

type ListTopicSubscriptionsRequest

type ListTopicSubscriptionsRequest struct {

	// Required. The name of the topic that subscriptions are attached to.
	// Format is `projects/{project}/topics/{topic}`.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// Optional. Maximum number of subscription names to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The value returned by the last `ListTopicSubscriptionsResponse`;
	// indicates that this is a continuation of a prior `ListTopicSubscriptions`
	// call, and that the system should return the next page of data.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for the `ListTopicSubscriptions` method.

func (*ListTopicSubscriptionsRequest) Descriptor deprecated

func (*ListTopicSubscriptionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTopicSubscriptionsRequest.ProtoReflect.Descriptor instead.

func (*ListTopicSubscriptionsRequest) GetPageSize

func (x *ListTopicSubscriptionsRequest) GetPageSize() int32

func (*ListTopicSubscriptionsRequest) GetPageToken

func (x *ListTopicSubscriptionsRequest) GetPageToken() string

func (*ListTopicSubscriptionsRequest) GetTopic

func (x *ListTopicSubscriptionsRequest) GetTopic() string

func (*ListTopicSubscriptionsRequest) ProtoMessage

func (*ListTopicSubscriptionsRequest) ProtoMessage()

func (*ListTopicSubscriptionsRequest) ProtoReflect

func (*ListTopicSubscriptionsRequest) Reset

func (x *ListTopicSubscriptionsRequest) Reset()

func (*ListTopicSubscriptionsRequest) String

type ListTopicSubscriptionsResponse

type ListTopicSubscriptionsResponse struct {

	// Optional. The names of subscriptions attached to the topic specified in the
	// request.
	Subscriptions []string `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// Optional. If not empty, indicates that there may be more subscriptions that
	// match the request; this value should be passed in a new
	// `ListTopicSubscriptionsRequest` to get more subscriptions.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for the `ListTopicSubscriptions` method.

func (*ListTopicSubscriptionsResponse) Descriptor deprecated

func (*ListTopicSubscriptionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTopicSubscriptionsResponse.ProtoReflect.Descriptor instead.

func (*ListTopicSubscriptionsResponse) GetNextPageToken

func (x *ListTopicSubscriptionsResponse) GetNextPageToken() string

func (*ListTopicSubscriptionsResponse) GetSubscriptions

func (x *ListTopicSubscriptionsResponse) GetSubscriptions() []string

func (*ListTopicSubscriptionsResponse) ProtoMessage

func (*ListTopicSubscriptionsResponse) ProtoMessage()

func (*ListTopicSubscriptionsResponse) ProtoReflect

func (*ListTopicSubscriptionsResponse) Reset

func (x *ListTopicSubscriptionsResponse) Reset()

func (*ListTopicSubscriptionsResponse) String

type ListTopicsRequest

type ListTopicsRequest struct {

	// Required. The name of the project in which to list topics.
	// Format is `projects/{project-id}`.
	Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// Optional. Maximum number of topics to return.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Optional. The value returned by the last `ListTopicsResponse`; indicates
	// that this is a continuation of a prior `ListTopics` call, and that the
	// system should return the next page of data.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

Request for the `ListTopics` method.

func (*ListTopicsRequest) Descriptor deprecated

func (*ListTopicsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTopicsRequest.ProtoReflect.Descriptor instead.

func (*ListTopicsRequest) GetPageSize

func (x *ListTopicsRequest) GetPageSize() int32

func (*ListTopicsRequest) GetPageToken

func (x *ListTopicsRequest) GetPageToken() string

func (*ListTopicsRequest) GetProject

func (x *ListTopicsRequest) GetProject() string

func (*ListTopicsRequest) ProtoMessage

func (*ListTopicsRequest) ProtoMessage()

func (*ListTopicsRequest) ProtoReflect

func (x *ListTopicsRequest) ProtoReflect() protoreflect.Message

func (*ListTopicsRequest) Reset

func (x *ListTopicsRequest) Reset()

func (*ListTopicsRequest) String

func (x *ListTopicsRequest) String() string

type ListTopicsResponse

type ListTopicsResponse struct {

	// Optional. The resulting topics.
	Topics []*Topic `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"`
	// Optional. If not empty, indicates that there may be more topics that match
	// the request; this value should be passed in a new `ListTopicsRequest`.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

Response for the `ListTopics` method.

func (*ListTopicsResponse) Descriptor deprecated

func (*ListTopicsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTopicsResponse.ProtoReflect.Descriptor instead.

func (*ListTopicsResponse) GetNextPageToken

func (x *ListTopicsResponse) GetNextPageToken() string

func (*ListTopicsResponse) GetTopics

func (x *ListTopicsResponse) GetTopics() []*Topic

func (*ListTopicsResponse) ProtoMessage

func (*ListTopicsResponse) ProtoMessage()

func (*ListTopicsResponse) ProtoReflect

func (x *ListTopicsResponse) ProtoReflect() protoreflect.Message

func (*ListTopicsResponse) Reset

func (x *ListTopicsResponse) Reset()

func (*ListTopicsResponse) String

func (x *ListTopicsResponse) String() string

type MessageStoragePolicy

type MessageStoragePolicy struct {

	// Optional. A list of IDs of Google Cloud regions where messages that are
	// published to the topic may be persisted in storage. Messages published by
	// publishers running in non-allowed Google Cloud regions (or running outside
	// of Google Cloud altogether) are routed for storage in one of the allowed
	// regions. An empty list means that no regions are allowed, and is not a
	// valid configuration.
	AllowedPersistenceRegions []string `` /* 138-byte string literal not displayed */
	// Optional. If true, `allowed_persistence_regions` is also used to enforce
	// in-transit guarantees for messages. That is, Pub/Sub will fail
	// Publish operations on this topic and subscribe operations
	// on any subscription attached to this topic in any region that is
	// not in `allowed_persistence_regions`.
	EnforceInTransit bool `protobuf:"varint,2,opt,name=enforce_in_transit,json=enforceInTransit,proto3" json:"enforce_in_transit,omitempty"`
	// contains filtered or unexported fields
}

A policy constraining the storage of messages published to the topic.

func (*MessageStoragePolicy) Descriptor deprecated

func (*MessageStoragePolicy) Descriptor() ([]byte, []int)

Deprecated: Use MessageStoragePolicy.ProtoReflect.Descriptor instead.

func (*MessageStoragePolicy) GetAllowedPersistenceRegions

func (x *MessageStoragePolicy) GetAllowedPersistenceRegions() []string

func (*MessageStoragePolicy) GetEnforceInTransit added in v1.36.0

func (x *MessageStoragePolicy) GetEnforceInTransit() bool

func (*MessageStoragePolicy) ProtoMessage

func (*MessageStoragePolicy) ProtoMessage()

func (*MessageStoragePolicy) ProtoReflect

func (x *MessageStoragePolicy) ProtoReflect() protoreflect.Message

func (*MessageStoragePolicy) Reset

func (x *MessageStoragePolicy) Reset()

func (*MessageStoragePolicy) String

func (x *MessageStoragePolicy) String() string

type ModifyAckDeadlineRequest

type ModifyAckDeadlineRequest struct {

	// Required. The name of the subscription.
	// Format is `projects/{project}/subscriptions/{sub}`.
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// Required. List of acknowledgment IDs.
	AckIds []string `protobuf:"bytes,4,rep,name=ack_ids,json=ackIds,proto3" json:"ack_ids,omitempty"`
	// Required. The new ack deadline with respect to the time this request was
	// sent to the Pub/Sub system. For example, if the value is 10, the new ack
	// deadline will expire 10 seconds after the `ModifyAckDeadline` call was
	// made. Specifying zero might immediately make the message available for
	// delivery to another subscriber client. This typically results in an
	// increase in the rate of message redeliveries (that is, duplicates).
	// The minimum deadline you can specify is 0 seconds.
	// The maximum deadline you can specify in a single request is 600 seconds
	// (10 minutes).
	AckDeadlineSeconds int32 `protobuf:"varint,3,opt,name=ack_deadline_seconds,json=ackDeadlineSeconds,proto3" json:"ack_deadline_seconds,omitempty"`
	// contains filtered or unexported fields
}

Request for the ModifyAckDeadline method.

func (*ModifyAckDeadlineRequest) Descriptor deprecated

func (*ModifyAckDeadlineRequest) Descriptor() ([]byte, []int)

Deprecated: Use ModifyAckDeadlineRequest.ProtoReflect.Descriptor instead.

func (*ModifyAckDeadlineRequest) GetAckDeadlineSeconds

func (x *ModifyAckDeadlineRequest) GetAckDeadlineSeconds() int32

func (*ModifyAckDeadlineRequest) GetAckIds

func (x *ModifyAckDeadlineRequest) GetAckIds() []string

func (*ModifyAckDeadlineRequest) GetSubscription

func (x *ModifyAckDeadlineRequest) GetSubscription() string

func (*ModifyAckDeadlineRequest) ProtoMessage

func (*ModifyAckDeadlineRequest) ProtoMessage()

func (*ModifyAckDeadlineRequest) ProtoReflect

func (x *ModifyAckDeadlineRequest) ProtoReflect() protoreflect.Message

func (*ModifyAckDeadlineRequest) Reset

func (x *ModifyAckDeadlineRequest) Reset()

func (*ModifyAckDeadlineRequest) String

func (x *ModifyAckDeadlineRequest) String() string

type ModifyPushConfigRequest

type ModifyPushConfigRequest struct {

	// Required. The name of the subscription.
	// Format is `projects/{project}/subscriptions/{sub}`.
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// Required. The push configuration for future deliveries.
	//
	// An empty `pushConfig` indicates that the Pub/Sub system should
	// stop pushing messages from the given subscription and allow
	// messages to be pulled and acknowledged - effectively pausing
	// the subscription if `Pull` or `StreamingPull` is not called.
	PushConfig *PushConfig `protobuf:"bytes,2,opt,name=push_config,json=pushConfig,proto3" json:"push_config,omitempty"`
	// contains filtered or unexported fields
}

Request for the ModifyPushConfig method.

func (*ModifyPushConfigRequest) Descriptor deprecated

func (*ModifyPushConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use ModifyPushConfigRequest.ProtoReflect.Descriptor instead.

func (*ModifyPushConfigRequest) GetPushConfig

func (x *ModifyPushConfigRequest) GetPushConfig() *PushConfig

func (*ModifyPushConfigRequest) GetSubscription

func (x *ModifyPushConfigRequest) GetSubscription() string

func (*ModifyPushConfigRequest) ProtoMessage

func (*ModifyPushConfigRequest) ProtoMessage()

func (*ModifyPushConfigRequest) ProtoReflect

func (x *ModifyPushConfigRequest) ProtoReflect() protoreflect.Message

func (*ModifyPushConfigRequest) Reset

func (x *ModifyPushConfigRequest) Reset()

func (*ModifyPushConfigRequest) String

func (x *ModifyPushConfigRequest) String() string

type PlatformLogsSettings added in v1.44.0

type PlatformLogsSettings struct {

	// Optional. The minimum severity level of Platform Logs that will be written.
	Severity PlatformLogsSettings_Severity `protobuf:"varint,1,opt,name=severity,proto3,enum=google.pubsub.v1.PlatformLogsSettings_Severity" json:"severity,omitempty"`
	// contains filtered or unexported fields
}

Settings for Platform Logs produced by Pub/Sub.

func (*PlatformLogsSettings) Descriptor deprecated added in v1.44.0

func (*PlatformLogsSettings) Descriptor() ([]byte, []int)

Deprecated: Use PlatformLogsSettings.ProtoReflect.Descriptor instead.

func (*PlatformLogsSettings) GetSeverity added in v1.44.0

func (*PlatformLogsSettings) ProtoMessage added in v1.44.0

func (*PlatformLogsSettings) ProtoMessage()

func (*PlatformLogsSettings) ProtoReflect added in v1.44.0

func (x *PlatformLogsSettings) ProtoReflect() protoreflect.Message

func (*PlatformLogsSettings) Reset added in v1.44.0

func (x *PlatformLogsSettings) Reset()

func (*PlatformLogsSettings) String added in v1.44.0

func (x *PlatformLogsSettings) String() string

type PlatformLogsSettings_Severity added in v1.44.0

type PlatformLogsSettings_Severity int32

Severity levels of Platform Logs.

const (
	// Default value. Logs level is unspecified. Logs will be disabled.
	PlatformLogsSettings_SEVERITY_UNSPECIFIED PlatformLogsSettings_Severity = 0
	// Logs will be disabled.
	PlatformLogsSettings_DISABLED PlatformLogsSettings_Severity = 1
	// Debug logs and higher-severity logs will be written.
	PlatformLogsSettings_DEBUG PlatformLogsSettings_Severity = 2
	// Info logs and higher-severity logs will be written.
	PlatformLogsSettings_INFO PlatformLogsSettings_Severity = 3
	// Warning logs and higher-severity logs will be written.
	PlatformLogsSettings_WARNING PlatformLogsSettings_Severity = 4
	// Only error logs will be written.
	PlatformLogsSettings_ERROR PlatformLogsSettings_Severity = 5
)

func (PlatformLogsSettings_Severity) Descriptor added in v1.44.0

func (PlatformLogsSettings_Severity) Enum added in v1.44.0

func (PlatformLogsSettings_Severity) EnumDescriptor deprecated added in v1.44.0

func (PlatformLogsSettings_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use PlatformLogsSettings_Severity.Descriptor instead.

func (PlatformLogsSettings_Severity) Number added in v1.44.0

func (PlatformLogsSettings_Severity) String added in v1.44.0

func (PlatformLogsSettings_Severity) Type added in v1.44.0

type PublishRequest

type PublishRequest struct {

	// Required. The messages in the request will be published on this topic.
	// Format is `projects/{project}/topics/{topic}`.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// Required. The messages to publish.
	Messages []*PubsubMessage `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

Request for the Publish method.

func (*PublishRequest) Descriptor deprecated

func (*PublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.

func (*PublishRequest) GetMessages

func (x *PublishRequest) GetMessages() []*PubsubMessage

func (*PublishRequest) GetTopic

func (x *PublishRequest) GetTopic() string

func (*PublishRequest) ProtoMessage

func (*PublishRequest) ProtoMessage()

func (*PublishRequest) ProtoReflect

func (x *PublishRequest) ProtoReflect() protoreflect.Message

func (*PublishRequest) Reset

func (x *PublishRequest) Reset()

func (*PublishRequest) String

func (x *PublishRequest) String() string

type PublishResponse

type PublishResponse struct {

	// Optional. The server-assigned ID of each published message, in the same
	// order as the messages in the request. IDs are guaranteed to be unique
	// within the topic.
	MessageIds []string `protobuf:"bytes,1,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"`
	// contains filtered or unexported fields
}

Response for the `Publish` method.

func (*PublishResponse) Descriptor deprecated

func (*PublishResponse) Descriptor() ([]byte, []int)

Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.

func (*PublishResponse) GetMessageIds

func (x *PublishResponse) GetMessageIds() []string

func (*PublishResponse) ProtoMessage

func (*PublishResponse) ProtoMessage()

func (*PublishResponse) ProtoReflect

func (x *PublishResponse) ProtoReflect() protoreflect.Message

func (*PublishResponse) Reset

func (x *PublishResponse) Reset()

func (*PublishResponse) String

func (x *PublishResponse) String() string

type PublisherClient

type PublisherClient interface {
	// Creates the given topic with the given name. See the [resource name rules]
	// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
	CreateTopic(ctx context.Context, in *Topic, opts ...grpc.CallOption) (*Topic, error)
	// Updates an existing topic by updating the fields specified in the update
	// mask. Note that certain properties of a topic are not modifiable.
	UpdateTopic(ctx context.Context, in *UpdateTopicRequest, opts ...grpc.CallOption) (*Topic, error)
	// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
	// does not exist.
	Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
	// Gets the configuration of a topic.
	GetTopic(ctx context.Context, in *GetTopicRequest, opts ...grpc.CallOption) (*Topic, error)
	// Lists matching topics.
	ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error)
	// Lists the names of the attached subscriptions on this topic.
	ListTopicSubscriptions(ctx context.Context, in *ListTopicSubscriptionsRequest, opts ...grpc.CallOption) (*ListTopicSubscriptionsResponse, error)
	// Lists the names of the snapshots on this topic. Snapshots are used in
	// [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
	// which allow you to manage message acknowledgments in bulk. That is, you can
	// set the acknowledgment state of messages in an existing subscription to the
	// state captured by a snapshot.
	ListTopicSnapshots(ctx context.Context, in *ListTopicSnapshotsRequest, opts ...grpc.CallOption) (*ListTopicSnapshotsResponse, error)
	// Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
	// does not exist. After a topic is deleted, a new topic may be created with
	// the same name; this is an entirely new topic with none of the old
	// configuration or subscriptions. Existing subscriptions to this topic are
	// not deleted, but their `topic` field is set to `_deleted-topic_`.
	DeleteTopic(ctx context.Context, in *DeleteTopicRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Detaches a subscription from this topic. All messages retained in the
	// subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
	// will return FAILED_PRECONDITION. If the subscription is a push
	// subscription, pushes to the endpoint will stop.
	DetachSubscription(ctx context.Context, in *DetachSubscriptionRequest, opts ...grpc.CallOption) (*DetachSubscriptionResponse, error)
}

PublisherClient is the client API for Publisher service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPublisherClient

func NewPublisherClient(cc grpc.ClientConnInterface) PublisherClient

type PublisherServer

type PublisherServer interface {
	// Creates the given topic with the given name. See the [resource name rules]
	// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
	CreateTopic(context.Context, *Topic) (*Topic, error)
	// Updates an existing topic by updating the fields specified in the update
	// mask. Note that certain properties of a topic are not modifiable.
	UpdateTopic(context.Context, *UpdateTopicRequest) (*Topic, error)
	// Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
	// does not exist.
	Publish(context.Context, *PublishRequest) (*PublishResponse, error)
	// Gets the configuration of a topic.
	GetTopic(context.Context, *GetTopicRequest) (*Topic, error)
	// Lists matching topics.
	ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error)
	// Lists the names of the attached subscriptions on this topic.
	ListTopicSubscriptions(context.Context, *ListTopicSubscriptionsRequest) (*ListTopicSubscriptionsResponse, error)
	// Lists the names of the snapshots on this topic. Snapshots are used in
	// [Seek](https://cloud.google.com/pubsub/docs/replay-overview) operations,
	// which allow you to manage message acknowledgments in bulk. That is, you can
	// set the acknowledgment state of messages in an existing subscription to the
	// state captured by a snapshot.
	ListTopicSnapshots(context.Context, *ListTopicSnapshotsRequest) (*ListTopicSnapshotsResponse, error)
	// Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
	// does not exist. After a topic is deleted, a new topic may be created with
	// the same name; this is an entirely new topic with none of the old
	// configuration or subscriptions. Existing subscriptions to this topic are
	// not deleted, but their `topic` field is set to `_deleted-topic_`.
	DeleteTopic(context.Context, *DeleteTopicRequest) (*emptypb.Empty, error)
	// Detaches a subscription from this topic. All messages retained in the
	// subscription are dropped. Subsequent `Pull` and `StreamingPull` requests
	// will return FAILED_PRECONDITION. If the subscription is a push
	// subscription, pushes to the endpoint will stop.
	DetachSubscription(context.Context, *DetachSubscriptionRequest) (*DetachSubscriptionResponse, error)
}

PublisherServer is the server API for Publisher service.

type PubsubMessage

type PubsubMessage struct {

	// Optional. The message data field. If this field is empty, the message must
	// contain at least one attribute.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Optional. Attributes for this message. If this field is empty, the message
	// must contain non-empty data. This can be used to filter messages on the
	// subscription.
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	// ID of this message, assigned by the server when the message is published.
	// Guaranteed to be unique within the topic. This value may be read by a
	// subscriber that receives a `PubsubMessage` via a `Pull` call or a push
	// delivery. It must not be populated by the publisher in a `Publish` call.
	MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
	// The time at which the message was published, populated by the server when
	// it receives the `Publish` call. It must not be populated by the
	// publisher in a `Publish` call.
	PublishTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=publish_time,json=publishTime,proto3" json:"publish_time,omitempty"`
	// Optional. If non-empty, identifies related messages for which publish order
	// should be respected. If a `Subscription` has `enable_message_ordering` set
	// to `true`, messages published with the same non-empty `ordering_key` value
	// will be delivered to subscribers in the order in which they are received by
	// the Pub/Sub system. All `PubsubMessage`s published in a given
	// `PublishRequest` must specify the same `ordering_key` value. For more
	// information, see [ordering
	// messages](https://cloud.google.com/pubsub/docs/ordering).
	OrderingKey string `protobuf:"bytes,5,opt,name=ordering_key,json=orderingKey,proto3" json:"ordering_key,omitempty"`
	// contains filtered or unexported fields
}

A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding [client library documentation](https://cloud.google.com/pubsub/docs/reference/libraries) for more information. See [quotas and limits] (https://cloud.google.com/pubsub/quotas) for more information about message limits.

func (*PubsubMessage) Descriptor deprecated

func (*PubsubMessage) Descriptor() ([]byte, []int)

Deprecated: Use PubsubMessage.ProtoReflect.Descriptor instead.

func (*PubsubMessage) GetAttributes

func (x *PubsubMessage) GetAttributes() map[string]string

func (*PubsubMessage) GetData

func (x *PubsubMessage) GetData() []byte

func (*PubsubMessage) GetMessageId

func (x *PubsubMessage) GetMessageId() string

func (*PubsubMessage) GetOrderingKey

func (x *PubsubMessage) GetOrderingKey() string

func (*PubsubMessage) GetPublishTime

func (x *PubsubMessage) GetPublishTime() *timestamppb.Timestamp

func (*PubsubMessage) ProtoMessage

func (*PubsubMessage) ProtoMessage()

func (*PubsubMessage) ProtoReflect

func (x *PubsubMessage) ProtoReflect() protoreflect.Message

func (*PubsubMessage) Reset

func (x *PubsubMessage) Reset()

func (*PubsubMessage) String

func (x *PubsubMessage) String() string

type PullRequest

type PullRequest struct {

	// Required. The subscription from which messages should be pulled.
	// Format is `projects/{project}/subscriptions/{sub}`.
	Subscription string `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// Optional. If this field set to true, the system will respond immediately
	// even if it there are no messages available to return in the `Pull`
	// response. Otherwise, the system may wait (for a bounded amount of time)
	// until at least one message is available, rather than returning no messages.
	// Warning: setting this field to `true` is discouraged because it adversely
	// impacts the performance of `Pull` operations. We recommend that users do
	// not set this field.
	//
	// Deprecated: Marked as deprecated in google/pubsub/v1/pubsub.proto.
	ReturnImmediately bool `protobuf:"varint,2,opt,name=return_immediately,json=returnImmediately,proto3" json:"return_immediately,omitempty"`
	// Required. The maximum number of messages to return for this request. Must
	// be a positive integer. The Pub/Sub system may return fewer than the number
	// specified.
	MaxMessages int32 `protobuf:"varint,3,opt,name=max_messages,json=maxMessages,proto3" json:"max_messages,omitempty"`
	// contains filtered or unexported fields
}

Request for the `Pull` method.

func (*PullRequest) Descriptor deprecated

func (*PullRequest) Descriptor() ([]byte, []int)

Deprecated: Use PullRequest.ProtoReflect.Descriptor instead.

func (*PullRequest) GetMaxMessages

func (x *PullRequest) GetMaxMessages() int32

func (*PullRequest) GetReturnImmediately deprecated

func (x *PullRequest) GetReturnImmediately() bool

Deprecated: Marked as deprecated in google/pubsub/v1/pubsub.proto.

func (*PullRequest) GetSubscription

func (x *PullRequest) GetSubscription() string

func (*PullRequest) ProtoMessage

func (*PullRequest) ProtoMessage()

func (*PullRequest) ProtoReflect

func (x *PullRequest) ProtoReflect() protoreflect.Message

func (*PullRequest) Reset

func (x *PullRequest) Reset()

func (*PullRequest) String

func (x *PullRequest) String() string

type PullResponse

type PullResponse struct {

	// Optional. Received Pub/Sub messages. The list will be empty if there are no
	// more messages available in the backlog, or if no messages could be returned
	// before the request timeout. For JSON, the response can be entirely
	// empty. The Pub/Sub system may return fewer than the `maxMessages` requested
	// even if there are more messages available in the backlog.
	ReceivedMessages []*ReceivedMessage `protobuf:"bytes,1,rep,name=received_messages,json=receivedMessages,proto3" json:"received_messages,omitempty"`
	// contains filtered or unexported fields
}

Response for the `Pull` method.

func (*PullResponse) Descriptor deprecated

func (*PullResponse) Descriptor() ([]byte, []int)

Deprecated: Use PullResponse.ProtoReflect.Descriptor instead.

func (*PullResponse) GetReceivedMessages

func (x *PullResponse) GetReceivedMessages() []*ReceivedMessage

func (*PullResponse) ProtoMessage

func (*PullResponse) ProtoMessage()

func (*PullResponse) ProtoReflect

func (x *PullResponse) ProtoReflect() protoreflect.Message

func (*PullResponse) Reset

func (x *PullResponse) Reset()

func (*PullResponse) String

func (x *PullResponse) String() string

type PushConfig

type PushConfig struct {

	// Optional. A URL locating the endpoint to which messages should be pushed.
	// For example, a Webhook endpoint might use `https://example.com/push`.
	PushEndpoint string `protobuf:"bytes,1,opt,name=push_endpoint,json=pushEndpoint,proto3" json:"push_endpoint,omitempty"`
	// Optional. Endpoint configuration attributes that can be used to control
	// different aspects of the message delivery.
	//
	// The only currently supported attribute is `x-goog-version`, which you can
	// use to change the format of the pushed message. This attribute
	// indicates the version of the data expected by the endpoint. This
	// controls the shape of the pushed message (i.e., its fields and metadata).
	//
	// If not present during the `CreateSubscription` call, it will default to
	// the version of the Pub/Sub API used to make such call. If not present in a
	// `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
	// calls will always return a valid version, even if the subscription was
	// created without this attribute.
	//
	// The only supported values for the `x-goog-version` attribute are:
	//
	// * `v1beta1`: uses the push format defined in the v1beta1 Pub/Sub API.
	// * `v1` or `v1beta2`: uses the push format defined in the v1 Pub/Sub API.
	//
	// For example:
	// `attributes { "x-goog-version": "v1" }`
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	// An authentication method used by push endpoints to verify the source of
	// push requests. This can be used with push endpoints that are private by
	// default to allow requests only from the Pub/Sub system, for example.
	// This field is optional and should be set only by users interested in
	// authenticated push.
	//
	// Types that are assignable to AuthenticationMethod:
	//
	//	*PushConfig_OidcToken_
	AuthenticationMethod isPushConfig_AuthenticationMethod `protobuf_oneof:"authentication_method"`
	// The format of the delivered message to the push endpoint is defined by
	// the chosen wrapper. When unset, `PubsubWrapper` is used.
	//
	// Types that are assignable to Wrapper:
	//
	//	*PushConfig_PubsubWrapper_
	//	*PushConfig_NoWrapper_
	Wrapper isPushConfig_Wrapper `protobuf_oneof:"wrapper"`
	// contains filtered or unexported fields
}

Configuration for a push delivery endpoint.

func (*PushConfig) Descriptor deprecated

func (*PushConfig) Descriptor() ([]byte, []int)

Deprecated: Use PushConfig.ProtoReflect.Descriptor instead.

func (*PushConfig) GetAttributes

func (x *PushConfig) GetAttributes() map[string]string

func (*PushConfig) GetAuthenticationMethod

func (m *PushConfig) GetAuthenticationMethod() isPushConfig_AuthenticationMethod

func (*PushConfig) GetNoWrapper added in v1.32.0

func (x *PushConfig) GetNoWrapper() *PushConfig_NoWrapper

func (*PushConfig) GetOidcToken

func (x *PushConfig) GetOidcToken() *PushConfig_OidcToken

func (*PushConfig) GetPubsubWrapper added in v1.32.0

func (x *PushConfig) GetPubsubWrapper() *PushConfig_PubsubWrapper

func (*PushConfig) GetPushEndpoint

func (x *PushConfig) GetPushEndpoint() string

func (*PushConfig) GetWrapper added in v1.32.0

func (m *PushConfig) GetWrapper() isPushConfig_Wrapper

func (*PushConfig) ProtoMessage

func (*PushConfig) ProtoMessage()

func (*PushConfig) ProtoReflect

func (x *PushConfig) ProtoReflect() protoreflect.Message

func (*PushConfig) Reset

func (x *PushConfig) Reset()

func (*PushConfig) String

func (x *PushConfig) String() string

type PushConfig_NoWrapper added in v1.32.0

type PushConfig_NoWrapper struct {

	// Optional. When true, writes the Pub/Sub message metadata to
	// `x-goog-pubsub-<KEY>:<VAL>` headers of the HTTP request. Writes the
	// Pub/Sub message attributes to `<KEY>:<VAL>` headers of the HTTP request.
	WriteMetadata bool `protobuf:"varint,1,opt,name=write_metadata,json=writeMetadata,proto3" json:"write_metadata,omitempty"`
	// contains filtered or unexported fields
}

Sets the `data` field as the HTTP body for delivery.

func (*PushConfig_NoWrapper) Descriptor deprecated added in v1.32.0

func (*PushConfig_NoWrapper) Descriptor() ([]byte, []int)

Deprecated: Use PushConfig_NoWrapper.ProtoReflect.Descriptor instead.

func (*PushConfig_NoWrapper) GetWriteMetadata added in v1.32.0

func (x *PushConfig_NoWrapper) GetWriteMetadata() bool

func (*PushConfig_NoWrapper) ProtoMessage added in v1.32.0

func (*PushConfig_NoWrapper) ProtoMessage()

func (*PushConfig_NoWrapper) ProtoReflect added in v1.32.0

func (x *PushConfig_NoWrapper) ProtoReflect() protoreflect.Message

func (*PushConfig_NoWrapper) Reset added in v1.32.0

func (x *PushConfig_NoWrapper) Reset()

func (*PushConfig_NoWrapper) String added in v1.32.0

func (x *PushConfig_NoWrapper) String() string

type PushConfig_NoWrapper_ added in v1.32.0

type PushConfig_NoWrapper_ struct {
	// Optional. When set, the payload to the push endpoint is not wrapped.
	NoWrapper *PushConfig_NoWrapper `protobuf:"bytes,5,opt,name=no_wrapper,json=noWrapper,proto3,oneof"`
}

type PushConfig_OidcToken

type PushConfig_OidcToken struct {

	// Optional. [Service account
	// email](https://cloud.google.com/iam/docs/service-accounts)
	// used for generating the OIDC token. For more information
	// on setting up authentication, see
	// [Push subscriptions](https://cloud.google.com/pubsub/docs/push).
	ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
	// Optional. Audience to be used when generating OIDC token. The audience
	// claim identifies the recipients that the JWT is intended for. The
	// audience value is a single case-sensitive string. Having multiple values
	// (array) for the audience field is not supported. More info about the OIDC
	// JWT token audience here:
	// https://tools.ietf.org/html/rfc7519#section-4.1.3 Note: if not specified,
	// the Push endpoint URL will be used.
	Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
	// contains filtered or unexported fields
}

Contains information needed for generating an [OpenID Connect token](https://developers.google.com/identity/protocols/OpenIDConnect).

func (*PushConfig_OidcToken) Descriptor deprecated

func (*PushConfig_OidcToken) Descriptor() ([]byte, []int)

Deprecated: Use PushConfig_OidcToken.ProtoReflect.Descriptor instead.

func (*PushConfig_OidcToken) GetAudience

func (x *PushConfig_OidcToken) GetAudience() string

func (*PushConfig_OidcToken) GetServiceAccountEmail

func (x *PushConfig_OidcToken) GetServiceAccountEmail() string

func (*PushConfig_OidcToken) ProtoMessage

func (*PushConfig_OidcToken) ProtoMessage()

func (*PushConfig_OidcToken) ProtoReflect

func (x *PushConfig_OidcToken) ProtoReflect() protoreflect.Message

func (*PushConfig_OidcToken) Reset

func (x *PushConfig_OidcToken) Reset()

func (*PushConfig_OidcToken) String

func (x *PushConfig_OidcToken) String() string

type PushConfig_OidcToken_

type PushConfig_OidcToken_ struct {
	// Optional. If specified, Pub/Sub will generate and attach an OIDC JWT
	// token as an `Authorization` header in the HTTP request for every pushed
	// message.
	OidcToken *PushConfig_OidcToken `protobuf:"bytes,3,opt,name=oidc_token,json=oidcToken,proto3,oneof"`
}

type PushConfig_PubsubWrapper added in v1.32.0

type PushConfig_PubsubWrapper struct {
	// contains filtered or unexported fields
}

The payload to the push endpoint is in the form of the JSON representation of a PubsubMessage (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).

func (*PushConfig_PubsubWrapper) Descriptor deprecated added in v1.32.0

func (*PushConfig_PubsubWrapper) Descriptor() ([]byte, []int)

Deprecated: Use PushConfig_PubsubWrapper.ProtoReflect.Descriptor instead.

func (*PushConfig_PubsubWrapper) ProtoMessage added in v1.32.0

func (*PushConfig_PubsubWrapper) ProtoMessage()

func (*PushConfig_PubsubWrapper) ProtoReflect added in v1.32.0

func (x *PushConfig_PubsubWrapper) ProtoReflect() protoreflect.Message

func (*PushConfig_PubsubWrapper) Reset added in v1.32.0

func (x *PushConfig_PubsubWrapper) Reset()

func (*PushConfig_PubsubWrapper) String added in v1.32.0

func (x *PushConfig_PubsubWrapper) String() string

type PushConfig_PubsubWrapper_ added in v1.32.0

type PushConfig_PubsubWrapper_ struct {
	// Optional. When set, the payload to the push endpoint is in the form of
	// the JSON representation of a PubsubMessage
	// (https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pubsubmessage).
	PubsubWrapper *PushConfig_PubsubWrapper `protobuf:"bytes,4,opt,name=pubsub_wrapper,json=pubsubWrapper,proto3,oneof"`
}

type ReceivedMessage

type ReceivedMessage struct {

	// Optional. This ID can be used to acknowledge the received message.
	AckId string `protobuf:"bytes,1,opt,name=ack_id,json=ackId,proto3" json:"ack_id,omitempty"`
	// Optional. The message.
	Message *PubsubMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// Optional. The approximate number of times that Pub/Sub has attempted to
	// deliver the associated message to a subscriber.
	//
	// More precisely, this is 1 + (number of NACKs) +
	// (number of ack_deadline exceeds) for this message.
	//
	// A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline
	// exceeds event is whenever a message is not acknowledged within
	// ack_deadline. Note that ack_deadline is initially
	// Subscription.ackDeadlineSeconds, but may get extended automatically by
	// the client library.
	//
	// Upon the first delivery of a given message, `delivery_attempt` will have a
	// value of 1. The value is calculated at best effort and is approximate.
	//
	// If a DeadLetterPolicy is not set on the subscription, this will be 0.
	DeliveryAttempt int32 `protobuf:"varint,3,opt,name=delivery_attempt,json=deliveryAttempt,proto3" json:"delivery_attempt,omitempty"`
	// contains filtered or unexported fields
}

A message and its corresponding acknowledgment ID.

func (*ReceivedMessage) Descriptor deprecated

func (*ReceivedMessage) Descriptor() ([]byte, []int)

Deprecated: Use ReceivedMessage.ProtoReflect.Descriptor instead.

func (*ReceivedMessage) GetAckId

func (x *ReceivedMessage) GetAckId() string

func (*ReceivedMessage) GetDeliveryAttempt

func (x *ReceivedMessage) GetDeliveryAttempt() int32

func (*ReceivedMessage) GetMessage

func (x *ReceivedMessage) GetM