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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ChannelConnection
build()
ChannelConnection
buildPartial()
ChannelConnection.Builder
clear()
ChannelConnection.Builder
clearActivationToken()
Input only.ChannelConnection.Builder
clearChannel()
Required.ChannelConnection.Builder
clearCreateTime()
Output only.ChannelConnection.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ChannelConnection.Builder
clearName()
Required.ChannelConnection.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ChannelConnection.Builder
clearUid()
Output only.ChannelConnection.Builder
clearUpdateTime()
Output only.ChannelConnection.Builder
clone()
String
getActivationToken()
Input only.com.google.protobuf.ByteString
getActivationTokenBytes()
Input only.String
getChannel()
Required.com.google.protobuf.ByteString
getChannelBytes()
Required.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.ChannelConnection
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getName()
Required.com.google.protobuf.ByteString
getNameBytes()
Required.String
getUid()
Output only.com.google.protobuf.ByteString
getUidBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ChannelConnection.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.ChannelConnection.Builder
mergeFrom(ChannelConnection other)
ChannelConnection.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ChannelConnection.Builder
mergeFrom(com.google.protobuf.Message other)
ChannelConnection.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ChannelConnection.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.ChannelConnection.Builder
setActivationToken(String value)
Input only.ChannelConnection.Builder
setActivationTokenBytes(com.google.protobuf.ByteString value)
Input only.ChannelConnection.Builder
setChannel(String value)
Required.ChannelConnection.Builder
setChannelBytes(com.google.protobuf.ByteString value)
Required.ChannelConnection.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.ChannelConnection.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.ChannelConnection.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ChannelConnection.Builder
setName(String value)
Required.ChannelConnection.Builder
setNameBytes(com.google.protobuf.ByteString value)
Required.ChannelConnection.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ChannelConnection.Builder
setUid(String value)
Output only.ChannelConnection.Builder
setUidBytes(com.google.protobuf.ByteString value)
Output only.ChannelConnection.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ChannelConnection.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.ChannelConnection.Builder
setUpdateTime(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
clear
public ChannelConnection.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
getDefaultInstanceForType
public ChannelConnection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ChannelConnection build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ChannelConnection buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ChannelConnection.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
setField
public ChannelConnection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
clearField
public ChannelConnection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
clearOneof
public ChannelConnection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
setRepeatedField
public ChannelConnection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
addRepeatedField
public ChannelConnection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
mergeFrom
public ChannelConnection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ChannelConnection.Builder>
-
mergeFrom
public ChannelConnection.Builder mergeFrom(ChannelConnection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getUid
in 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:
getUidBytes
in 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:
getChannel
in 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:
getChannelBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in 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:
hasUpdateTime
in 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:
getUpdateTime
in 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:
getUpdateTimeOrBuilder
in 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:
getActivationToken
in 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:
getActivationTokenBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
mergeUnknownFields
public final ChannelConnection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ChannelConnection.Builder>
-
-