Class ChannelPartnerLink.Builder (3.49.0)

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
Type Description
Descriptor

Methods

public ChannelPartnerLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ChannelPartnerLink.Builder
Overrides
public ChannelPartnerLink build()
Returns
Type Description
ChannelPartnerLink
public ChannelPartnerLink buildPartial()
Returns
Type Description
ChannelPartnerLink
public ChannelPartnerLink.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder
public ChannelPartnerLink getDefaultInstanceForType()
Returns
Type Description
ChannelPartnerLink
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
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
Name Description
value CloudIdentityInfo
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder mergeFrom(ChannelPartnerLink other)
Parameter
Name Description
other ChannelPartnerLink
Returns
Type Description
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ChannelPartnerLink.Builder
Overrides
Exceptions
Type Description
IOException
public ChannelPartnerLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ChannelPartnerLink.Builder
Overrides
public final ChannelPartnerLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value CloudIdentityInfo
Returns
Type Description
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
Name Description
builderForValue CloudIdentityInfo.Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
ChannelPartnerLink.Builder
public ChannelPartnerLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The inviteLinkUri to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for inviteLinkUri to set.

Returns
Type Description
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
Name Description
value ChannelPartnerLinkState

The linkState to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value String

The name to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
value String

The publicId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for publicId to set.

Returns
Type Description
ChannelPartnerLink.Builder

This builder for chaining.

public ChannelPartnerLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The resellerCloudIdentityId to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for resellerCloudIdentityId to set.

Returns
Type Description
ChannelPartnerLink.Builder

This builder for chaining.

public final ChannelPartnerLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
ChannelPartnerLink.Builder