Class AttachTrustRequest.Builder (1.4.0)

public static final class AttachTrustRequest.Builder extends GeneratedMessageV3.Builder<AttachTrustRequest.Builder> implements AttachTrustRequestOrBuilder

Request message for AttachTrust

Protobuf type google.cloud.managedidentities.v1.AttachTrustRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AttachTrustRequest build()
Returns
TypeDescription
AttachTrustRequest

buildPartial()

public AttachTrustRequest buildPartial()
Returns
TypeDescription
AttachTrustRequest

clear()

public AttachTrustRequest.Builder clear()
Returns
TypeDescription
AttachTrustRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public AttachTrustRequest.Builder clearName()

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
AttachTrustRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTrust()

public AttachTrustRequest.Builder clearTrust()

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AttachTrustRequest.Builder

clone()

public AttachTrustRequest.Builder clone()
Returns
TypeDescription
AttachTrustRequest.Builder
Overrides

getDefaultInstanceForType()

public AttachTrustRequest getDefaultInstanceForType()
Returns
TypeDescription
AttachTrustRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

getTrust()

public Trust getTrust()

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Trust

The trust.

getTrustBuilder()

public Trust.Builder getTrustBuilder()

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Trust.Builder

getTrustOrBuilder()

public TrustOrBuilder getTrustOrBuilder()

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
TrustOrBuilder

hasTrust()

public boolean hasTrust()

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the trust field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttachTrustRequest other)

public AttachTrustRequest.Builder mergeFrom(AttachTrustRequest other)
Parameter
NameDescription
otherAttachTrustRequest
Returns
TypeDescription
AttachTrustRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTrust(Trust value)

public AttachTrustRequest.Builder mergeTrust(Trust value)

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTrust
Returns
TypeDescription
AttachTrustRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttachTrustRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttachTrustRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public AttachTrustRequest.Builder setName(String value)

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
AttachTrustRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AttachTrustRequest.Builder setNameBytes(ByteString value)

Required. The resource domain name, project name and location using the form: projects/{project_id}/locations/global/domains/{domain_name}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
AttachTrustRequest.Builder

This builder for chaining.

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

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

setTrust(Trust value)

public AttachTrustRequest.Builder setTrust(Trust value)

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueTrust
Returns
TypeDescription
AttachTrustRequest.Builder

setTrust(Trust.Builder builderForValue)

public AttachTrustRequest.Builder setTrust(Trust.Builder builderForValue)

Required. The domain trust resource.

.google.cloud.managedidentities.v1.Trust trust = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueTrust.Builder
Returns
TypeDescription
AttachTrustRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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