Class MembershipSpec.Builder (1.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipSpec build()
Returns
TypeDescription
MembershipSpec

buildPartial()

public MembershipSpec buildPartial()
Returns
TypeDescription
MembershipSpec

clear()

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

clearConfigSync()

public MembershipSpec.Builder clearConfigSync()

Config Sync configuration for the cluster.

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

Returns
TypeDescription
MembershipSpec.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearHierarchyController()

public MembershipSpec.Builder clearHierarchyController()

Hierarchy Controller configuration for the cluster.

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

Returns
TypeDescription
MembershipSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyController()

public MembershipSpec.Builder clearPolicyController()

Policy Controller configuration for the cluster.

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

Returns
TypeDescription
MembershipSpec.Builder

clearVersion()

public MembershipSpec.Builder clearVersion()

Version of ACM installed.

string version = 10;

Returns
TypeDescription
MembershipSpec.Builder

This builder for chaining.

clone()

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

getConfigSync()

public ConfigSync getConfigSync()

Config Sync configuration for the cluster.

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

Returns
TypeDescription
ConfigSync

The configSync.

getConfigSyncBuilder()

public ConfigSync.Builder getConfigSyncBuilder()

Config Sync configuration for the cluster.

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

Returns
TypeDescription
ConfigSync.Builder

getConfigSyncOrBuilder()

public ConfigSyncOrBuilder getConfigSyncOrBuilder()

Config Sync configuration for the cluster.

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

Returns
TypeDescription
ConfigSyncOrBuilder

getDefaultInstanceForType()

public MembershipSpec getDefaultInstanceForType()
Returns
TypeDescription
MembershipSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHierarchyController()

public HierarchyControllerConfig getHierarchyController()

Hierarchy Controller configuration for the cluster.

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

Returns
TypeDescription
HierarchyControllerConfig

The hierarchyController.

getHierarchyControllerBuilder()

public HierarchyControllerConfig.Builder getHierarchyControllerBuilder()

Hierarchy Controller configuration for the cluster.

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

Returns
TypeDescription
HierarchyControllerConfig.Builder

getHierarchyControllerOrBuilder()

public HierarchyControllerConfigOrBuilder getHierarchyControllerOrBuilder()

Hierarchy Controller configuration for the cluster.

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

Returns
TypeDescription
HierarchyControllerConfigOrBuilder

getPolicyController()

public PolicyController getPolicyController()

Policy Controller configuration for the cluster.

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

Returns
TypeDescription
PolicyController

The policyController.

getPolicyControllerBuilder()

public PolicyController.Builder getPolicyControllerBuilder()

Policy Controller configuration for the cluster.

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

Returns
TypeDescription
PolicyController.Builder

getPolicyControllerOrBuilder()

public PolicyControllerOrBuilder getPolicyControllerOrBuilder()

Policy Controller configuration for the cluster.

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

Returns
TypeDescription
PolicyControllerOrBuilder

getVersion()

public String getVersion()

Version of ACM installed.

string version = 10;

Returns
TypeDescription
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of ACM installed.

string version = 10;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the policyController field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueConfigSync
Returns
TypeDescription
MembershipSpec.Builder

mergeFrom(MembershipSpec other)

public MembershipSpec.Builder mergeFrom(MembershipSpec other)
Parameter
NameDescription
otherMembershipSpec
Returns
TypeDescription
MembershipSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MembershipSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueHierarchyControllerConfig
Returns
TypeDescription
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
NameDescription
valuePolicyController
Returns
TypeDescription
MembershipSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public MembershipSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueHierarchyControllerConfig
Returns
TypeDescription
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
NameDescription
builderForValueHierarchyControllerConfig.Builder
Returns
TypeDescription
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
NameDescription
valuePolicyController
Returns
TypeDescription
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
NameDescription
builderForValuePolicyController.Builder
Returns
TypeDescription
MembershipSpec.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(String value)

public MembershipSpec.Builder setVersion(String value)

Version of ACM installed.

string version = 10;

Parameter
NameDescription
valueString

The version to set.

Returns
TypeDescription
MembershipSpec.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public MembershipSpec.Builder setVersionBytes(ByteString value)

Version of ACM installed.

string version = 10;

Parameter
NameDescription
valueByteString

The bytes for version to set.

Returns
TypeDescription
MembershipSpec.Builder

This builder for chaining.