Class MembershipSpec.Builder (1.55.0)

public static final class MembershipSpec.Builder extends GeneratedMessageV3.Builder<MembershipSpec.Builder> implements MembershipSpecOrBuilder

Service Mesh: Spec for a single Membership for the servicemesh feature

Protobuf type google.cloud.gkehub.servicemesh.v1beta.MembershipSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipSpec build()
Returns
Type Description
MembershipSpec

buildPartial()

public MembershipSpec buildPartial()
Returns
Type Description
MembershipSpec

clear()

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

clearControlPlane() (deprecated)

public MembershipSpec.Builder clearControlPlane()

Deprecated. google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60

Deprecated: use management instead Enables automatic control plane management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true];

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearManagement()

public MembershipSpec.Builder clearManagement()

Enables automatic Service Mesh management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4;

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getControlPlane() (deprecated)

public MembershipSpec.ControlPlaneManagement getControlPlane()

Deprecated. google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60

Deprecated: use management instead Enables automatic control plane management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true];

Returns
Type Description
MembershipSpec.ControlPlaneManagement

The controlPlane.

getControlPlaneValue() (deprecated)

public int getControlPlaneValue()

Deprecated. google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60

Deprecated: use management instead Enables automatic control plane management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for controlPlane.

getDefaultInstanceForType()

public MembershipSpec getDefaultInstanceForType()
Returns
Type Description
MembershipSpec

getDescriptorForType()

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

getManagement()

public MembershipSpec.Management getManagement()

Enables automatic Service Mesh management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4;

Returns
Type Description
MembershipSpec.Management

The management.

getManagementValue()

public int getManagementValue()

Enables automatic Service Mesh management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4;

Returns
Type Description
int

The enum numeric value on the wire for management.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MembershipSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setControlPlane(MembershipSpec.ControlPlaneManagement value) (deprecated)

public MembershipSpec.Builder setControlPlane(MembershipSpec.ControlPlaneManagement value)

Deprecated. google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60

Deprecated: use management instead Enables automatic control plane management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true];

Parameter
Name Description
value MembershipSpec.ControlPlaneManagement

The controlPlane to set.

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

setControlPlaneValue(int value) (deprecated)

public MembershipSpec.Builder setControlPlaneValue(int value)

Deprecated. google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.control_plane is deprecated. See google/cloud/gkehub/servicemesh/v1beta/servicemesh.proto;l=60

Deprecated: use management instead Enables automatic control plane management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.ControlPlaneManagement control_plane = 1 [deprecated = true];

Parameter
Name Description
value int

The enum numeric value on the wire for controlPlane to set.

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setManagement(MembershipSpec.Management value)

public MembershipSpec.Builder setManagement(MembershipSpec.Management value)

Enables automatic Service Mesh management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4;

Parameter
Name Description
value MembershipSpec.Management

The management to set.

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

setManagementValue(int value)

public MembershipSpec.Builder setManagementValue(int value)

Enables automatic Service Mesh management.

.google.cloud.gkehub.servicemesh.v1beta.MembershipSpec.Management management = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for management to set.

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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