Class CreateChannelPartnerLinkRequest.Builder (3.26.0)

public static final class CreateChannelPartnerLinkRequest.Builder extends GeneratedMessageV3.Builder<CreateChannelPartnerLinkRequest.Builder> implements CreateChannelPartnerLinkRequestOrBuilder

Request message for CloudChannelService.CreateChannelPartnerLink

Protobuf type google.cloud.channel.v1.CreateChannelPartnerLinkRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateChannelPartnerLinkRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides

build()

public CreateChannelPartnerLinkRequest build()
Returns
TypeDescription
CreateChannelPartnerLinkRequest

buildPartial()

public CreateChannelPartnerLinkRequest buildPartial()
Returns
TypeDescription
CreateChannelPartnerLinkRequest

clear()

public CreateChannelPartnerLinkRequest.Builder clear()
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides
public CreateChannelPartnerLinkRequest.Builder clearChannelPartnerLink()

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateChannelPartnerLinkRequest.Builder clearParent()

Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder

This builder for chaining.

clone()

public CreateChannelPartnerLinkRequest.Builder clone()
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides
public ChannelPartnerLink getChannelPartnerLink()

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChannelPartnerLink

The channelPartnerLink.

getChannelPartnerLinkBuilder()

public ChannelPartnerLink.Builder getChannelPartnerLinkBuilder()

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChannelPartnerLink.Builder

getChannelPartnerLinkOrBuilder()

public ChannelPartnerLinkOrBuilder getChannelPartnerLinkOrBuilder()

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ChannelPartnerLinkOrBuilder

getDefaultInstanceForType()

public CreateChannelPartnerLinkRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateChannelPartnerLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for parent.

public boolean hasChannelPartnerLink()

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the channelPartnerLink field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public CreateChannelPartnerLinkRequest.Builder mergeChannelPartnerLink(ChannelPartnerLink value)

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueChannelPartnerLink
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder

mergeFrom(CreateChannelPartnerLinkRequest other)

public CreateChannelPartnerLinkRequest.Builder mergeFrom(CreateChannelPartnerLinkRequest other)
Parameter
NameDescription
otherCreateChannelPartnerLinkRequest
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateChannelPartnerLinkRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateChannelPartnerLinkRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateChannelPartnerLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides
public CreateChannelPartnerLinkRequest.Builder setChannelPartnerLink(ChannelPartnerLink value)

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueChannelPartnerLink
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
public CreateChannelPartnerLinkRequest.Builder setChannelPartnerLink(ChannelPartnerLink.Builder builderForValue)

Required. The channel partner link to create. Either channel_partner_link.reseller_cloud_identity_id or domain can be used to create a link.

.google.cloud.channel.v1.ChannelPartnerLink channel_partner_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueChannelPartnerLink.Builder
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CreateChannelPartnerLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides

setParent(String value)

public CreateChannelPartnerLinkRequest.Builder setParent(String value)

Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateChannelPartnerLinkRequest.Builder setParentBytes(ByteString value)

Required. Create a channel partner link for the provided reseller account's resource name. Parent uses the format: accounts/{account_id}

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateChannelPartnerLinkRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateChannelPartnerLinkRequest.Builder
Overrides