Package com.google.cloud.eventarc.v1
Class GoogleApiSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
com.google.cloud.eventarc.v1.GoogleApiSource.Builder
- All Implemented Interfaces:
GoogleApiSourceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GoogleApiSource
public static final class GoogleApiSource.Builder
extends com.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
implements GoogleApiSourceOrBuilder
A GoogleApiSource represents a subscription of 1P events from a MessageBus.Protobuf type
google.cloud.eventarc.v1.GoogleApiSource-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.Required.Optional.Output only.Optional.Identifier.Optional.Optional.clearUid()Output only.Output only.booleanOptional.booleancontainsLabels(String key) Optional.Deprecated.intOptional.Optional.getAnnotationsOrDefault(String key, String defaultValue) Optional.Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.getEtag()Output only.com.google.protobuf.ByteStringOutput only.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Optional.Optional.Optional.Deprecated.Deprecated.getName()Identifier.com.google.protobuf.ByteStringIdentifier.Optional.Optional.Optional.Optional.Optional.Optional.getUid()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOptional.booleanOptional.booleanOptional.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(GoogleApiSource other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLoggingConfig(LoggingConfig value) Optional.Optional.Optional.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllAnnotations(Map<String, String> values) Optional.putAllLabels(Map<String, String> values) Optional.putAnnotations(String key, String value) Optional.Optional.removeAnnotations(String key) Optional.removeLabels(String key) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setCryptoKeyName(String value) Optional.setCryptoKeyNameBytes(com.google.protobuf.ByteString value) Optional.setDestination(String value) Required.setDestinationBytes(com.google.protobuf.ByteString value) Required.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.Output only.setEtagBytes(com.google.protobuf.ByteString value) Output only.setLoggingConfig(LoggingConfig value) Optional.setLoggingConfig(LoggingConfig.Builder builderForValue) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.Optional.Optional.Optional.setProjectSubscriptions(GoogleApiSource.ProjectSubscriptions.Builder builderForValue) Optional.Output only.setUidBytes(com.google.protobuf.ByteString value) Output only.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GoogleApiSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<GoogleApiSource.Builder>
-
mergeFrom
public GoogleApiSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GoogleApiSource.Builder>- Throws:
IOException
-
getWideScopeSubscriptionCase
- Specified by:
getWideScopeSubscriptionCasein interfaceGoogleApiSourceOrBuilder
-
clearWideScopeSubscription
-
getName
Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceGoogleApiSourceOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceGoogleApiSourceOrBuilder- Returns:
- The bytes for name.
-
setName
Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Returns:
- This builder for chaining.
-
setNameBytes
Identifier. Resource name of the form projects/{project}/locations/{location}/googleApiSources/{google_api_source}string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUid
Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getUidin interfaceGoogleApiSourceOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Specified by:
getUidBytesin interfaceGoogleApiSourceOrBuilder- Returns:
- The bytes for uid.
-
setUid
Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Returns:
- This builder for chaining.
-
setUidBytes
Output only. Server assigned unique identifier for the channel. The value is a UUID4 string and guaranteed to remain unchanged until the resource is deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
getEtag
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagin interfaceGoogleApiSourceOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEtagBytesin interfaceGoogleApiSourceOrBuilder- Returns:
- The bytes for etag.
-
setEtag
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setEtagBytes
Output only. This checksum is computed by the server based on the value of other fields, and might be sent only on update and delete requests to ensure that the client has an up-to-date value before proceeding.
string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceGoogleApiSourceOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceGoogleApiSourceOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The creation time.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceGoogleApiSourceOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceGoogleApiSourceOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceGoogleApiSourceOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceGoogleApiSourceOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:GoogleApiSourceOrBuilderOptional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsCountin interfaceGoogleApiSourceOrBuilder
-
containsLabels
Optional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsLabelsin interfaceGoogleApiSourceOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceGoogleApiSourceOrBuilder
-
getLabelsMap
Optional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsMapin interfaceGoogleApiSourceOrBuilder
-
getLabelsOrDefault
Optional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrDefaultin interfaceGoogleApiSourceOrBuilder
-
getLabelsOrThrow
Optional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLabelsOrThrowin interfaceGoogleApiSourceOrBuilder
-
clearLabels
-
removeLabels
Optional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; -
putAllLabels
Optional. Resource labels.
map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getAnnotationsCount
public int getAnnotationsCount()Description copied from interface:GoogleApiSourceOrBuilderOptional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsCountin interfaceGoogleApiSourceOrBuilder
-
containsAnnotations
Optional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsAnnotationsin interfaceGoogleApiSourceOrBuilder
-
getAnnotations
Deprecated.UsegetAnnotationsMap()instead.- Specified by:
getAnnotationsin interfaceGoogleApiSourceOrBuilder
-
getAnnotationsMap
Optional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsMapin interfaceGoogleApiSourceOrBuilder
-
getAnnotationsOrDefault
Optional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrDefaultin interfaceGoogleApiSourceOrBuilder
-
getAnnotationsOrThrow
Optional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAnnotationsOrThrowin interfaceGoogleApiSourceOrBuilder
-
clearAnnotations
-
removeAnnotations
Optional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getMutableAnnotations
Deprecated.Use alternate mutation accessors instead. -
putAnnotations
Optional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; -
putAllAnnotations
Optional. Resource annotations.
map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getDisplayName
Optional. Resource display name.
string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNamein interfaceGoogleApiSourceOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Optional. Resource display name.
string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDisplayNameBytesin interfaceGoogleApiSourceOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Optional. Resource display name.
string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Optional. Resource display name.
string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Optional. Resource display name.
string display_name = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDestination
Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getDestinationin interfaceGoogleApiSourceOrBuilder- Returns:
- The destination.
-
getDestinationBytes
public com.google.protobuf.ByteString getDestinationBytes()Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getDestinationBytesin interfaceGoogleApiSourceOrBuilder- Returns:
- The bytes for destination.
-
setDestination
Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The destination to set.- Returns:
- This builder for chaining.
-
clearDestination
Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setDestinationBytes
Required. Destination is the message bus that the GoogleApiSource is delivering to. It must be point to the full resource name of a MessageBus. Format: "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for destination to set.- Returns:
- This builder for chaining.
-
getCryptoKeyName
Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getCryptoKeyNamein interfaceGoogleApiSourceOrBuilder- Returns:
- The cryptoKeyName.
-
getCryptoKeyNameBytes
public com.google.protobuf.ByteString getCryptoKeyNameBytes()Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getCryptoKeyNameBytesin interfaceGoogleApiSourceOrBuilder- Returns:
- The bytes for cryptoKeyName.
-
setCryptoKeyName
Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The cryptoKeyName to set.- Returns:
- This builder for chaining.
-
clearCryptoKeyName
Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setCryptoKeyNameBytes
Optional. Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt their event data. It must match the pattern `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for cryptoKeyName to set.- Returns:
- This builder for chaining.
-
hasLoggingConfig
public boolean hasLoggingConfig()Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasLoggingConfigin interfaceGoogleApiSourceOrBuilder- Returns:
- Whether the loggingConfig field is set.
-
getLoggingConfig
Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLoggingConfigin interfaceGoogleApiSourceOrBuilder- Returns:
- The loggingConfig.
-
setLoggingConfig
Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
setLoggingConfig
Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
mergeLoggingConfig
Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
clearLoggingConfig
Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getLoggingConfigBuilder
Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; -
getLoggingConfigOrBuilder
Optional. Config to control Platform logging for the GoogleApiSource.
.google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLoggingConfigOrBuilderin interfaceGoogleApiSourceOrBuilder
-
hasOrganizationSubscription
public boolean hasOrganizationSubscription()Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasOrganizationSubscriptionin interfaceGoogleApiSourceOrBuilder- Returns:
- Whether the organizationSubscription field is set.
-
getOrganizationSubscription
Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOrganizationSubscriptionin interfaceGoogleApiSourceOrBuilder- Returns:
- The organizationSubscription.
-
setOrganizationSubscription
public GoogleApiSource.Builder setOrganizationSubscription(GoogleApiSource.OrganizationSubscription value) Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; -
setOrganizationSubscription
public GoogleApiSource.Builder setOrganizationSubscription(GoogleApiSource.OrganizationSubscription.Builder builderForValue) Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; -
mergeOrganizationSubscription
public GoogleApiSource.Builder mergeOrganizationSubscription(GoogleApiSource.OrganizationSubscription value) Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; -
clearOrganizationSubscription
Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getOrganizationSubscriptionBuilder
Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; -
getOrganizationSubscriptionOrBuilder
Optional. Config to enable subscribing to events from all projects in the GoogleApiSource's org.
.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOrganizationSubscriptionOrBuilderin interfaceGoogleApiSourceOrBuilder
-
hasProjectSubscriptions
public boolean hasProjectSubscriptions()Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasProjectSubscriptionsin interfaceGoogleApiSourceOrBuilder- Returns:
- Whether the projectSubscriptions field is set.
-
getProjectSubscriptions
Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectSubscriptionsin interfaceGoogleApiSourceOrBuilder- Returns:
- The projectSubscriptions.
-
setProjectSubscriptions
Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; -
setProjectSubscriptions
public GoogleApiSource.Builder setProjectSubscriptions(GoogleApiSource.ProjectSubscriptions.Builder builderForValue) Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; -
mergeProjectSubscriptions
public GoogleApiSource.Builder mergeProjectSubscriptions(GoogleApiSource.ProjectSubscriptions value) Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; -
clearProjectSubscriptions
Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; -
getProjectSubscriptionsBuilder
Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; -
getProjectSubscriptionsOrBuilder
Optional. Config to enable subscribing to all events from a list of projects. All the projects must be in the same org as the GoogleApiSource.
.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getProjectSubscriptionsOrBuilderin interfaceGoogleApiSourceOrBuilder
-