Class FeatureSpec.Builder (1.22.0)

public static final class FeatureSpec.Builder extends GeneratedMessageV3.Builder<FeatureSpec.Builder> implements FeatureSpecOrBuilder

Multi-cluster Ingress: The configuration for the MultiClusterIngress feature.

Protobuf type google.cloud.gkehub.multiclusteringress.v1.FeatureSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FeatureSpec build()
Returns
TypeDescription
FeatureSpec

buildPartial()

public FeatureSpec buildPartial()
Returns
TypeDescription
FeatureSpec

clear()

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

clearConfigMembership()

public FeatureSpec.Builder clearConfigMembership()

Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: projects/foo-proj/locations/global/memberships/bar

string config_membership = 1;

Returns
TypeDescription
FeatureSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConfigMembership()

public String getConfigMembership()

Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: projects/foo-proj/locations/global/memberships/bar

string config_membership = 1;

Returns
TypeDescription
String

The configMembership.

getConfigMembershipBytes()

public ByteString getConfigMembershipBytes()

Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: projects/foo-proj/locations/global/memberships/bar

string config_membership = 1;

Returns
TypeDescription
ByteString

The bytes for configMembership.

getDefaultInstanceForType()

public FeatureSpec getDefaultInstanceForType()
Returns
TypeDescription
FeatureSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FeatureSpec other)

public FeatureSpec.Builder mergeFrom(FeatureSpec other)
Parameter
NameDescription
otherFeatureSpec
Returns
TypeDescription
FeatureSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfigMembership(String value)

public FeatureSpec.Builder setConfigMembership(String value)

Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: projects/foo-proj/locations/global/memberships/bar

string config_membership = 1;

Parameter
NameDescription
valueString

The configMembership to set.

Returns
TypeDescription
FeatureSpec.Builder

This builder for chaining.

setConfigMembershipBytes(ByteString value)

public FeatureSpec.Builder setConfigMembershipBytes(ByteString value)

Fully-qualified Membership name which hosts the MultiClusterIngress CRD. Example: projects/foo-proj/locations/global/memberships/bar

string config_membership = 1;

Parameter
NameDescription
valueByteString

The bytes for configMembership to set.

Returns
TypeDescription
FeatureSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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