Class CreateChannelPartnerLinkRequest.Builder (3.37.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public CreateChannelPartnerLinkRequest build()
Returns
TypeDescription
CreateChannelPartnerLinkRequest

buildPartial()

public CreateChannelPartnerLinkRequest buildPartial()
Returns
TypeDescription
CreateChannelPartnerLinkRequest

clear()

public CreateChannelPartnerLinkRequest.Builder clear()
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];

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateChannelPartnerLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
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()
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

mergeFrom(CreateChannelPartnerLinkRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateChannelPartnerLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
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
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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateChannelPartnerLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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