Class ValidateExclusivityRequest.Builder (1.46.0)

public static final class ValidateExclusivityRequest.Builder extends GeneratedMessageV3.Builder<ValidateExclusivityRequest.Builder> implements ValidateExclusivityRequestOrBuilder

The request to validate the existing state of the membership CR in the cluster.

Protobuf type google.cloud.gkehub.v1beta1.ValidateExclusivityRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ValidateExclusivityRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

build()

public ValidateExclusivityRequest build()
Returns
Type Description
ValidateExclusivityRequest

buildPartial()

public ValidateExclusivityRequest buildPartial()
Returns
Type Description
ValidateExclusivityRequest

clear()

public ValidateExclusivityRequest.Builder clear()
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

clearCrManifest()

public ValidateExclusivityRequest.Builder clearCrManifest()

Optional. The YAML of the membership CR in the cluster. Empty if the membership CR does not exist.

string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ValidateExclusivityRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

clearIntendedMembership()

public ValidateExclusivityRequest.Builder clearIntendedMembership()

Required. The intended membership name under the parent. This method only does validation in anticipation of a CreateMembership call with the same name.

string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ValidateExclusivityRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

clearParent()

public ValidateExclusivityRequest.Builder clearParent()

Required. The parent (project and location) where the Memberships will be created. Specified in the format projects/*/locations/*.

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

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

clone()

public ValidateExclusivityRequest.Builder clone()
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

getCrManifest()

public String getCrManifest()

Optional. The YAML of the membership CR in the cluster. Empty if the membership CR does not exist.

string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The crManifest.

getCrManifestBytes()

public ByteString getCrManifestBytes()

Optional. The YAML of the membership CR in the cluster. Empty if the membership CR does not exist.

string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for crManifest.

getDefaultInstanceForType()

public ValidateExclusivityRequest getDefaultInstanceForType()
Returns
Type Description
ValidateExclusivityRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIntendedMembership()

public String getIntendedMembership()

Required. The intended membership name under the parent. This method only does validation in anticipation of a CreateMembership call with the same name.

string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The intendedMembership.

getIntendedMembershipBytes()

public ByteString getIntendedMembershipBytes()

Required. The intended membership name under the parent. This method only does validation in anticipation of a CreateMembership call with the same name.

string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for intendedMembership.

getParent()

public String getParent()

Required. The parent (project and location) where the Memberships will be created. Specified in the format projects/*/locations/*.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent (project and location) where the Memberships will be created. Specified in the format projects/*/locations/*.

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ValidateExclusivityRequest other)

public ValidateExclusivityRequest.Builder mergeFrom(ValidateExclusivityRequest other)
Parameter
Name Description
other ValidateExclusivityRequest
Returns
Type Description
ValidateExclusivityRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ValidateExclusivityRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ValidateExclusivityRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ValidateExclusivityRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

setCrManifest(String value)

public ValidateExclusivityRequest.Builder setCrManifest(String value)

Optional. The YAML of the membership CR in the cluster. Empty if the membership CR does not exist.

string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The crManifest to set.

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

setCrManifestBytes(ByteString value)

public ValidateExclusivityRequest.Builder setCrManifestBytes(ByteString value)

Optional. The YAML of the membership CR in the cluster. Empty if the membership CR does not exist.

string cr_manifest = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for crManifest to set.

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ValidateExclusivityRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

setIntendedMembership(String value)

public ValidateExclusivityRequest.Builder setIntendedMembership(String value)

Required. The intended membership name under the parent. This method only does validation in anticipation of a CreateMembership call with the same name.

string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The intendedMembership to set.

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

setIntendedMembershipBytes(ByteString value)

public ValidateExclusivityRequest.Builder setIntendedMembershipBytes(ByteString value)

Required. The intended membership name under the parent. This method only does validation in anticipation of a CreateMembership call with the same name.

string intended_membership = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for intendedMembership to set.

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

setParent(String value)

public ValidateExclusivityRequest.Builder setParent(String value)

Required. The parent (project and location) where the Memberships will be created. Specified in the format projects/*/locations/*.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ValidateExclusivityRequest.Builder setParentBytes(ByteString value)

Required. The parent (project and location) where the Memberships will be created. Specified in the format projects/*/locations/*.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ValidateExclusivityRequest.Builder

This builder for chaining.

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

public ValidateExclusivityRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ValidateExclusivityRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ValidateExclusivityRequest.Builder
Overrides