Class ValidateExclusivityRequest.Builder

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ValidateExclusivityRequest build()
Returns
TypeDescription
ValidateExclusivityRequest

buildPartial()

public ValidateExclusivityRequest buildPartial()
Returns
TypeDescription
ValidateExclusivityRequest

clear()

public ValidateExclusivityRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
ValidateExclusivityRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ValidateExclusivityRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ValidateExclusivityRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ValidateExclusivityRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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];

Returns
TypeDescription
ValidateExclusivityRequest.Builder

This builder for chaining.

clone()

public ValidateExclusivityRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for crManifest.

getDefaultInstanceForType()

public ValidateExclusivityRequest getDefaultInstanceForType()
Returns
TypeDescription
ValidateExclusivityRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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];

Returns
TypeDescription
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];

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ValidateExclusivityRequest other)

public ValidateExclusivityRequest.Builder mergeFrom(ValidateExclusivityRequest other)
Parameter
NameDescription
otherValidateExclusivityRequest
Returns
TypeDescription
ValidateExclusivityRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The crManifest to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for crManifest to set.

Returns
TypeDescription
ValidateExclusivityRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The intendedMembership to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for intendedMembership to set.

Returns
TypeDescription
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];

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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];

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ValidateExclusivityRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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