Class ChannelPartnerLink.Builder

  • All Implemented Interfaces:
    ChannelPartnerLinkOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ChannelPartnerLink

    public static final class ChannelPartnerLink.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • clear

        public ChannelPartnerLink.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • getDefaultInstanceForType

        public ChannelPartnerLink getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ChannelPartnerLink build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ChannelPartnerLink buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ChannelPartnerLink.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • setField

        public ChannelPartnerLink.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • clearField

        public ChannelPartnerLink.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • clearOneof

        public ChannelPartnerLink.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • setRepeatedField

        public ChannelPartnerLink.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • addRepeatedField

        public ChannelPartnerLink.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • mergeFrom

        public ChannelPartnerLink.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelPartnerLink.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • mergeFrom

        public ChannelPartnerLink.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ChannelPartnerLink.Builder>
        Throws:
        IOException
      • getName

        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];
        Specified by:
        getName in interface ChannelPartnerLinkOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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];
        Specified by:
        getNameBytes in interface ChannelPartnerLinkOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        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:
        This builder for chaining.
      • setNameBytes

        public ChannelPartnerLink.Builder setNameBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getResellerCloudIdentityId

        public String getResellerCloudIdentityId()
         Required. Cloud Identity ID of the linked reseller.
         
        string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResellerCloudIdentityId in interface ChannelPartnerLinkOrBuilder
        Returns:
        The resellerCloudIdentityId.
      • getResellerCloudIdentityIdBytes

        public com.google.protobuf.ByteString getResellerCloudIdentityIdBytes()
         Required. Cloud Identity ID of the linked reseller.
         
        string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getResellerCloudIdentityIdBytes in interface ChannelPartnerLinkOrBuilder
        Returns:
        The bytes for resellerCloudIdentityId.
      • setResellerCloudIdentityId

        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];
        Parameters:
        value - The resellerCloudIdentityId to set.
        Returns:
        This builder for chaining.
      • clearResellerCloudIdentityId

        public ChannelPartnerLink.Builder clearResellerCloudIdentityId()
         Required. Cloud Identity ID of the linked reseller.
         
        string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setResellerCloudIdentityIdBytes

        public ChannelPartnerLink.Builder setResellerCloudIdentityIdBytes​(com.google.protobuf.ByteString value)
         Required. Cloud Identity ID of the linked reseller.
         
        string reseller_cloud_identity_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for resellerCloudIdentityId to set.
        Returns:
        This builder for chaining.
      • getLinkStateValue

        public int getLinkStateValue()
         Required. State of the channel partner link.
         
        .google.cloud.channel.v1.ChannelPartnerLinkState link_state = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getLinkStateValue in interface ChannelPartnerLinkOrBuilder
        Returns:
        The enum numeric value on the wire for linkState.
      • setLinkStateValue

        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];
        Parameters:
        value - The enum numeric value on the wire for linkState to set.
        Returns:
        This builder for chaining.
      • setLinkState

        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];
        Parameters:
        value - The linkState to set.
        Returns:
        This builder for chaining.
      • clearLinkState

        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:
        This builder for chaining.
      • getInviteLinkUri

        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];
        Specified by:
        getInviteLinkUri in interface ChannelPartnerLinkOrBuilder
        Returns:
        The inviteLinkUri.
      • getInviteLinkUriBytes

        public com.google.protobuf.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];
        Specified by:
        getInviteLinkUriBytes in interface ChannelPartnerLinkOrBuilder
        Returns:
        The bytes for inviteLinkUri.
      • setInviteLinkUri

        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];
        Parameters:
        value - The inviteLinkUri to set.
        Returns:
        This builder for chaining.
      • clearInviteLinkUri

        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:
        This builder for chaining.
      • setInviteLinkUriBytes

        public ChannelPartnerLink.Builder setInviteLinkUriBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for inviteLinkUri to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        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];
        Specified by:
        hasCreateTime in interface ChannelPartnerLinkOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.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];
        Specified by:
        getCreateTime in interface ChannelPartnerLinkOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public ChannelPartnerLink.Builder setCreateTime​(com.google.protobuf.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];
      • setCreateTime

        public ChannelPartnerLink.Builder setCreateTime​(com.google.protobuf.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];
      • mergeCreateTime

        public ChannelPartnerLink.Builder mergeCreateTime​(com.google.protobuf.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];
      • clearCreateTime

        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];
      • getCreateTimeBuilder

        public com.google.protobuf.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];
      • getCreateTimeOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getCreateTimeOrBuilder in interface ChannelPartnerLinkOrBuilder
      • hasUpdateTime

        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];
        Specified by:
        hasUpdateTime in interface ChannelPartnerLinkOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.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];
        Specified by:
        getUpdateTime in interface ChannelPartnerLinkOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public ChannelPartnerLink.Builder setUpdateTime​(com.google.protobuf.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];
      • setUpdateTime

        public ChannelPartnerLink.Builder setUpdateTime​(com.google.protobuf.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];
      • mergeUpdateTime

        public ChannelPartnerLink.Builder mergeUpdateTime​(com.google.protobuf.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];
      • clearUpdateTime

        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];
      • getUpdateTimeBuilder

        public com.google.protobuf.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];
      • getUpdateTimeOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getUpdateTimeOrBuilder in interface ChannelPartnerLinkOrBuilder
      • getPublicId

        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];
        Specified by:
        getPublicId in interface ChannelPartnerLinkOrBuilder
        Returns:
        The publicId.
      • getPublicIdBytes

        public com.google.protobuf.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];
        Specified by:
        getPublicIdBytes in interface ChannelPartnerLinkOrBuilder
        Returns:
        The bytes for publicId.
      • setPublicId

        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];
        Parameters:
        value - The publicId to set.
        Returns:
        This builder for chaining.
      • clearPublicId

        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:
        This builder for chaining.
      • setPublicIdBytes

        public ChannelPartnerLink.Builder setPublicIdBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for publicId to set.
        Returns:
        This builder for chaining.
      • hasChannelPartnerCloudIdentityInfo

        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];
        Specified by:
        hasChannelPartnerCloudIdentityInfo in interface ChannelPartnerLinkOrBuilder
        Returns:
        Whether the channelPartnerCloudIdentityInfo field is set.
      • getChannelPartnerCloudIdentityInfo

        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];
        Specified by:
        getChannelPartnerCloudIdentityInfo in interface ChannelPartnerLinkOrBuilder
        Returns:
        The channelPartnerCloudIdentityInfo.
      • setChannelPartnerCloudIdentityInfo

        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];
      • setChannelPartnerCloudIdentityInfo

        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];
      • mergeChannelPartnerCloudIdentityInfo

        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];
      • clearChannelPartnerCloudIdentityInfo

        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];
      • getChannelPartnerCloudIdentityInfoBuilder

        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];
      • setUnknownFields

        public final ChannelPartnerLink.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>
      • mergeUnknownFields

        public final ChannelPartnerLink.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ChannelPartnerLink.Builder>