Package com.google.cloud.eventarc.v1
Class ChannelConnection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
- com.google.cloud.eventarc.v1.ChannelConnection.Builder
-
- All Implemented Interfaces:
ChannelConnectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ChannelConnection
public static final class ChannelConnection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder> implements ChannelConnectionOrBuilder
A representation of the ChannelConnection resource. A ChannelConnection is a resource which event providers create during the activation process to establish a connection between the provider and the subscriber channel.
Protobuf typegoogle.cloud.eventarc.v1.ChannelConnection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelConnection.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ChannelConnectionbuild()ChannelConnectionbuildPartial()ChannelConnection.Builderclear()ChannelConnection.BuilderclearActivationToken()Input only.ChannelConnection.BuilderclearChannel()Required.ChannelConnection.BuilderclearCreateTime()Output only.ChannelConnection.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ChannelConnection.BuilderclearName()Required.ChannelConnection.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ChannelConnection.BuilderclearUid()Output only.ChannelConnection.BuilderclearUpdateTime()Output only.ChannelConnection.Builderclone()StringgetActivationToken()Input only.com.google.protobuf.ByteStringgetActivationTokenBytes()Input only.StringgetChannel()Required.com.google.protobuf.ByteStringgetChannelBytes()Required.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.ChannelConnectiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.StringgetUid()Output only.com.google.protobuf.ByteStringgetUidBytes()Output only.com.google.protobuf.TimestampgetUpdateTime()Output only.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()Output only.booleanhasCreateTime()Output only.booleanhasUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ChannelConnection.BuildermergeCreateTime(com.google.protobuf.Timestamp value)Output only.ChannelConnection.BuildermergeFrom(ChannelConnection other)ChannelConnection.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ChannelConnection.BuildermergeFrom(com.google.protobuf.Message other)ChannelConnection.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ChannelConnection.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)Output only.ChannelConnection.BuildersetActivationToken(String value)Input only.ChannelConnection.BuildersetActivationTokenBytes(com.google.protobuf.ByteString value)Input only.ChannelConnection.BuildersetChannel(String value)Required.ChannelConnection.BuildersetChannelBytes(com.google.protobuf.ByteString value)Required.ChannelConnection.BuildersetCreateTime(com.google.protobuf.Timestamp value)Output only.ChannelConnection.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.ChannelConnection.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ChannelConnection.BuildersetName(String value)Required.ChannelConnection.BuildersetNameBytes(com.google.protobuf.ByteString value)Required.ChannelConnection.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ChannelConnection.BuildersetUid(String value)Output only.ChannelConnection.BuildersetUidBytes(com.google.protobuf.ByteString value)Output only.ChannelConnection.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ChannelConnection.BuildersetUpdateTime(com.google.protobuf.Timestamp value)Output only.ChannelConnection.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
clear
public ChannelConnection.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.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.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
getDefaultInstanceForType
public ChannelConnection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ChannelConnection build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ChannelConnection buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ChannelConnection.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
setField
public ChannelConnection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
clearField
public ChannelConnection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
clearOneof
public ChannelConnection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
setRepeatedField
public ChannelConnection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
addRepeatedField
public ChannelConnection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
mergeFrom
public ChannelConnection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChannelConnection.Builder>
-
mergeFrom
public ChannelConnection.Builder mergeFrom(ChannelConnection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
mergeFrom
public ChannelConnection.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<ChannelConnection.Builder>- Throws:
IOException
-
getName
public String getName()
Required. The name of the connection.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceChannelConnectionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The name of the connection.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceChannelConnectionOrBuilder- Returns:
- The bytes for name.
-
setName
public ChannelConnection.Builder setName(String value)
Required. The name of the connection.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public ChannelConnection.Builder clearName()
Required. The name of the connection.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
public ChannelConnection.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The name of the connection.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getUid
public String getUid()
Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidin interfaceChannelConnectionOrBuilder- Returns:
- The uid.
-
getUidBytes
public com.google.protobuf.ByteString getUidBytes()
Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUidBytesin interfaceChannelConnectionOrBuilder- Returns:
- The bytes for uid.
-
setUid
public ChannelConnection.Builder setUid(String value)
Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The uid to set.- Returns:
- This builder for chaining.
-
clearUid
public ChannelConnection.Builder clearUid()
Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUidBytes
public ChannelConnection.Builder setUidBytes(com.google.protobuf.ByteString value)
Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.
string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bytes for uid to set.- Returns:
- This builder for chaining.
-
getChannel
public String getChannel()
Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format.string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getChannelin interfaceChannelConnectionOrBuilder- Returns:
- The channel.
-
getChannelBytes
public com.google.protobuf.ByteString getChannelBytes()
Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format.string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getChannelBytesin interfaceChannelConnectionOrBuilder- Returns:
- The bytes for channel.
-
setChannel
public ChannelConnection.Builder setChannel(String value)
Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format.string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The channel to set.- Returns:
- This builder for chaining.
-
clearChannel
public ChannelConnection.Builder clearChannel()
Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format.string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setChannelBytes
public ChannelConnection.Builder setChannelBytes(com.google.protobuf.ByteString value)
Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format.string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for channel to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceChannelConnectionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceChannelConnectionOrBuilder- Returns:
- The createTime.
-
setCreateTime
public ChannelConnection.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public ChannelConnection.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public ChannelConnection.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearCreateTime
public ChannelConnection.Builder clearCreateTime()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation time.
.google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceChannelConnectionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceChannelConnectionOrBuilder- 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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceChannelConnectionOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public ChannelConnection.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public ChannelConnection.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public ChannelConnection.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearUpdateTime
public ChannelConnection.Builder clearUpdateTime()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.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 = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last-modified time.
.google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceChannelConnectionOrBuilder
-
getActivationToken
public String getActivationToken()
Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getActivationTokenin interfaceChannelConnectionOrBuilder- Returns:
- The activationToken.
-
getActivationTokenBytes
public com.google.protobuf.ByteString getActivationTokenBytes()
Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getActivationTokenBytesin interfaceChannelConnectionOrBuilder- Returns:
- The bytes for activationToken.
-
setActivationToken
public ChannelConnection.Builder setActivationToken(String value)
Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The activationToken to set.- Returns:
- This builder for chaining.
-
clearActivationToken
public ChannelConnection.Builder clearActivationToken()
Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
setActivationTokenBytes
public ChannelConnection.Builder setActivationTokenBytes(com.google.protobuf.ByteString value)
Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.
string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The bytes for activationToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ChannelConnection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
mergeUnknownFields
public final ChannelConnection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
-