Class MembershipSpec.Builder (1.55.0)

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

Policy Controller: Configuration for a single cluster. Intended to parallel the PolicyController CR.

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPolicyControllerHubConfig()

public MembershipSpec.Builder clearPolicyControllerHubConfig()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Returns
Type Description
MembershipSpec.Builder

clearVersion()

public MembershipSpec.Builder clearVersion()

Version of Policy Controller installed.

string version = 2;

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public MembershipSpec getDefaultInstanceForType()
Returns
Type Description
MembershipSpec

getDescriptorForType()

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

getPolicyControllerHubConfig()

public HubConfig getPolicyControllerHubConfig()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Returns
Type Description
HubConfig

The policyControllerHubConfig.

getPolicyControllerHubConfigBuilder()

public HubConfig.Builder getPolicyControllerHubConfigBuilder()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Returns
Type Description
HubConfig.Builder

getPolicyControllerHubConfigOrBuilder()

public HubConfigOrBuilder getPolicyControllerHubConfigOrBuilder()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Returns
Type Description
HubConfigOrBuilder

getVersion()

public String getVersion()

Version of Policy Controller installed.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

Version of Policy Controller installed.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

hasPolicyControllerHubConfig()

public boolean hasPolicyControllerHubConfig()

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Returns
Type Description
boolean

Whether the policyControllerHubConfig field is set.

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

mergePolicyControllerHubConfig(HubConfig value)

public MembershipSpec.Builder mergePolicyControllerHubConfig(HubConfig value)

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Parameter
Name Description
value HubConfig
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

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

setPolicyControllerHubConfig(HubConfig value)

public MembershipSpec.Builder setPolicyControllerHubConfig(HubConfig value)

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Parameter
Name Description
value HubConfig
Returns
Type Description
MembershipSpec.Builder

setPolicyControllerHubConfig(HubConfig.Builder builderForValue)

public MembershipSpec.Builder setPolicyControllerHubConfig(HubConfig.Builder builderForValue)

Policy Controller configuration for the cluster.

.google.cloud.gkehub.policycontroller.v1beta.HubConfig policy_controller_hub_config = 1;

Parameter
Name Description
builderForValue HubConfig.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 Policy Controller installed.

string version = 2;

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 Policy Controller installed.

string version = 2;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
MembershipSpec.Builder

This builder for chaining.