Class ChannelPartnerLink.Builder (3.7.2)

public static final class ChannelPartnerLink.Builder extends GeneratedMessageV3.Builder<ChannelPartnerLink.Builder> implements ChannelPartnerLinkOrBuilder

Entity representing a link between distributors and their indirect resellers in an n-tier resale channel.

Protobuf type google.cloud.channel.v1.ChannelPartnerLink

Static Methods

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

public ChannelPartnerLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink build()
Returns
TypeDescription
ChannelPartnerLink
public ChannelPartnerLink buildPartial()
Returns
TypeDescription
ChannelPartnerLink
public ChannelPartnerLink.Builder clear()
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink.Builder clearChannelPartnerCloudIdentityInfo()

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder clearCreateTime()

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink.Builder clearInviteLinkUri()

Output only. URI of the web page where partner accepts the link invitation.

string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder clearLinkState()

Required. State of the channel partner link.

.google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder clearName()

Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink.Builder clearPublicId()

Output only. Public identifier that a customer must use to generate a transfer token to move to this distributor-reseller combination.

string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder clearResellerCloudIdentityId()

Required. Cloud Identity ID of the linked reseller.

string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder clearUpdateTime()

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder clone()
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public CloudIdentityInfo getChannelPartnerCloudIdentityInfo()

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CloudIdentityInfo

The channelPartnerCloudIdentityInfo.

public CloudIdentityInfo.Builder getChannelPartnerCloudIdentityInfoBuilder()

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CloudIdentityInfo.Builder
public CloudIdentityInfoOrBuilder getChannelPartnerCloudIdentityInfoOrBuilder()

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CloudIdentityInfoOrBuilder
public Timestamp getCreateTime()

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

public Timestamp.Builder getCreateTimeBuilder()

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder
public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder
public ChannelPartnerLink getDefaultInstanceForType()
Returns
TypeDescription
ChannelPartnerLink
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public String getInviteLinkUri()

Output only. URI of the web page where partner accepts the link invitation.

string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The inviteLinkUri.

public ByteString getInviteLinkUriBytes()

Output only. URI of the web page where partner accepts the link invitation.

string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for inviteLinkUri.

public ChannelPartnerLinkState getLinkState()

Required. State of the channel partner link.

.google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChannelPartnerLinkState

The linkState.

public int getLinkStateValue()

Required. State of the channel partner link.

.google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for linkState.

public String getName()

Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

public ByteString getNameBytes()

Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

public String getPublicId()

Output only. Public identifier that a customer must use to generate a transfer token to move to this distributor-reseller combination.

string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The publicId.

public ByteString getPublicIdBytes()

Output only. Public identifier that a customer must use to generate a transfer token to move to this distributor-reseller combination.

string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for publicId.

public String getResellerCloudIdentityId()

Required. Cloud Identity ID of the linked reseller.

string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The resellerCloudIdentityId.

public ByteString getResellerCloudIdentityIdBytes()

Required. Cloud Identity ID of the linked reseller.

string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for resellerCloudIdentityId.

public Timestamp getUpdateTime()

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder
public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder
public boolean hasChannelPartnerCloudIdentityInfo()

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the channelPartnerCloudIdentityInfo field is set.

public boolean hasCreateTime()

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

public boolean hasUpdateTime()

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public ChannelPartnerLink.Builder mergeChannelPartnerCloudIdentityInfo(CloudIdentityInfo value)

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCloudIdentityInfo
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder mergeFrom(ChannelPartnerLink other)
Parameter
NameDescription
otherChannelPartnerLink
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides Exceptions
TypeDescription
IOException
public ChannelPartnerLink.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public final ChannelPartnerLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder setChannelPartnerCloudIdentityInfo(CloudIdentityInfo value)

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCloudIdentityInfo
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder setChannelPartnerCloudIdentityInfo(CloudIdentityInfo.Builder builderForValue)

Output only. Cloud Identity info of the channel partner (IR).

.google.cloud.channel.v1.CloudIdentityInfo channel_partner_cloud_identity_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueCloudIdentityInfo.Builder
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder setCreateTime(Timestamp value)

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp of when the channel partner link is created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink.Builder setInviteLinkUri(String value)

Output only. URI of the web page where partner accepts the link invitation.

string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The inviteLinkUri to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setInviteLinkUriBytes(ByteString value)

Output only. URI of the web page where partner accepts the link invitation.

string invite_link_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for inviteLinkUri to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setLinkState(ChannelPartnerLinkState value)

Required. State of the channel partner link.

.google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueChannelPartnerLinkState

The linkState to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setLinkStateValue(int value)

Required. State of the channel partner link.

.google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for linkState to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setName(String value)

Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setNameBytes(ByteString value)

Output only. Resource name for the channel partner link, in the format accounts/{account_id}/channelPartnerLinks/{id}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setPublicId(String value)

Output only. Public identifier that a customer must use to generate a transfer token to move to this distributor-reseller combination.

string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The publicId to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setPublicIdBytes(ByteString value)

Output only. Public identifier that a customer must use to generate a transfer token to move to this distributor-reseller combination.

string public_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for publicId to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink.Builder setResellerCloudIdentityId(String value)

Required. Cloud Identity ID of the linked reseller.

string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The resellerCloudIdentityId to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setResellerCloudIdentityIdBytes(ByteString value)

Required. Cloud Identity ID of the linked reseller.

string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for resellerCloudIdentityId to set.

Returns
TypeDescription
ChannelPartnerLink.Builder

This builder for chaining.

public final ChannelPartnerLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink.Builder setUpdateTime(Timestamp value)

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp of when the channel partner link is updated.

.google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ChannelPartnerLink.Builder