Class MembershipSpec.Builder (1.43.0)

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

Anthos Config Management: Configuration for a single cluster. Intended to parallel the ConfigManagement CR.

Protobuf type google.cloud.gkehub.configmanagement.v1.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

clearConfigSync()

public MembershipSpec.Builder clearConfigSync()

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Returns
Type Description
MembershipSpec.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHierarchyController()

public MembershipSpec.Builder clearHierarchyController()

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Returns
Type Description
MembershipSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyController()

public MembershipSpec.Builder clearPolicyController()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Returns
Type Description
MembershipSpec.Builder

clearVersion()

public MembershipSpec.Builder clearVersion()

Version of ACM installed.

string version = 10;

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

clone()

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

getConfigSync()

public ConfigSync getConfigSync()

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Returns
Type Description
ConfigSync

The configSync.

getConfigSyncBuilder()

public ConfigSync.Builder getConfigSyncBuilder()

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Returns
Type Description
ConfigSync.Builder

getConfigSyncOrBuilder()

public ConfigSyncOrBuilder getConfigSyncOrBuilder()

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Returns
Type Description
ConfigSyncOrBuilder

getDefaultInstanceForType()

public MembershipSpec getDefaultInstanceForType()
Returns
Type Description
MembershipSpec

getDescriptorForType()

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

getHierarchyController()

public HierarchyControllerConfig getHierarchyController()

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Returns
Type Description
HierarchyControllerConfig

The hierarchyController.

getHierarchyControllerBuilder()

public HierarchyControllerConfig.Builder getHierarchyControllerBuilder()

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Returns
Type Description
HierarchyControllerConfig.Builder

getHierarchyControllerOrBuilder()

public HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder()

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Returns
Type Description
HierarchyControllerConfigOrBuilder

getPolicyController()

public PolicyController getPolicyController()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Returns
Type Description
PolicyController

The policyController.

getPolicyControllerBuilder()

public PolicyController.Builder getPolicyControllerBuilder()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Returns
Type Description
PolicyController.Builder

getPolicyControllerOrBuilder()

public PolicyControllerOrBuilder getPolicyControllerOrBuilder()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Returns
Type Description
PolicyControllerOrBuilder

getVersion()

public String getVersion()

Version of ACM installed.

string version = 10;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of ACM installed.

string version = 10;

Returns
Type Description
ByteString

The bytes for version.

hasConfigSync()

public boolean hasConfigSync()

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Returns
Type Description
boolean

Whether the configSync field is set.

hasHierarchyController()

public boolean hasHierarchyController()

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Returns
Type Description
boolean

Whether the hierarchyController field is set.

hasPolicyController()

public boolean hasPolicyController()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Returns
Type Description
boolean

Whether the policyController field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConfigSync(ConfigSync value)

public MembershipSpec.Builder mergeConfigSync(ConfigSync value)

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Parameter
Name Description
value ConfigSync
Returns
Type Description
MembershipSpec.Builder

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

mergeHierarchyController(HierarchyControllerConfig value)

public MembershipSpec.Builder mergeHierarchyController(HierarchyControllerConfig value)

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Parameter
Name Description
value HierarchyControllerConfig
Returns
Type Description
MembershipSpec.Builder

mergePolicyController(PolicyController value)

public MembershipSpec.Builder mergePolicyController(PolicyController value)

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Parameter
Name Description
value PolicyController
Returns
Type Description
MembershipSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfigSync(ConfigSync value)

public MembershipSpec.Builder setConfigSync(ConfigSync value)

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Parameter
Name Description
value ConfigSync
Returns
Type Description
MembershipSpec.Builder

setConfigSync(ConfigSync.Builder builderForValue)

public MembershipSpec.Builder setConfigSync(ConfigSync.Builder builderForValue)

Config Sync configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;

Parameter
Name Description
builderForValue ConfigSync.Builder
Returns
Type Description
MembershipSpec.Builder

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

setHierarchyController(HierarchyControllerConfig value)

public MembershipSpec.Builder setHierarchyController(HierarchyControllerConfig value)

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Parameter
Name Description
value HierarchyControllerConfig
Returns
Type Description
MembershipSpec.Builder

setHierarchyController(HierarchyControllerConfig.Builder builderForValue)

public MembershipSpec.Builder setHierarchyController(HierarchyControllerConfig.Builder builderForValue)

Hierarchy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;

Parameter
Name Description
builderForValue HierarchyControllerConfig.Builder
Returns
Type Description
MembershipSpec.Builder

setPolicyController(PolicyController value)

public MembershipSpec.Builder setPolicyController(PolicyController value)

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Parameter
Name Description
value PolicyController
Returns
Type Description
MembershipSpec.Builder

setPolicyController(PolicyController.Builder builderForValue)

public MembershipSpec.Builder setPolicyController(PolicyController.Builder builderForValue)

Policy Controller configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;

Parameter
Name Description
builderForValue PolicyController.Builder
Returns
Type Description
MembershipSpec.Builder

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

setVersion(String value)

public MembershipSpec.Builder setVersion(String value)

Version of ACM installed.

string version = 10;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public MembershipSpec.Builder setVersionBytes(ByteString value)

Version of ACM installed.

string version = 10;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.