Class PolicyContentState.Builder (1.54.0)

public static final class PolicyContentState.Builder extends GeneratedMessageV3.Builder<PolicyContentState.Builder> implements PolicyContentStateOrBuilder

The state of the policy controller policy content

Protobuf type google.cloud.gkehub.policycontroller.v1beta.PolicyContentState

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PolicyContentState build()
Returns
Type Description
PolicyContentState

buildPartial()

public PolicyContentState buildPartial()
Returns
Type Description
PolicyContentState

clear()

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

clearBundleStates()

public PolicyContentState.Builder clearBundleStates()
Returns
Type Description
PolicyContentState.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReferentialSyncConfigState()

public PolicyContentState.Builder clearReferentialSyncConfigState()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
PolicyContentState.Builder

clearTemplateLibraryState()

public PolicyContentState.Builder clearTemplateLibraryState()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
PolicyContentState.Builder

clone()

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

containsBundleStates(String key)

public boolean containsBundleStates(String key)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBundleStates() (deprecated)

public Map<String,OnClusterState> getBundleStates()

Use #getBundleStatesMap() instead.

Returns
Type Description
Map<String,OnClusterState>

getBundleStatesCount()

public int getBundleStatesCount()

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Returns
Type Description
int

getBundleStatesMap()

public Map<String,OnClusterState> getBundleStatesMap()

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Returns
Type Description
Map<String,OnClusterState>

getBundleStatesOrDefault(String key, OnClusterState defaultValue)

public OnClusterState getBundleStatesOrDefault(String key, OnClusterState defaultValue)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameters
Name Description
key String
defaultValue OnClusterState
Returns
Type Description
OnClusterState

getBundleStatesOrThrow(String key)

public OnClusterState getBundleStatesOrThrow(String key)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameter
Name Description
key String
Returns
Type Description
OnClusterState

getDefaultInstanceForType()

public PolicyContentState getDefaultInstanceForType()
Returns
Type Description
PolicyContentState

getDescriptorForType()

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

getMutableBundleStates() (deprecated)

public Map<String,OnClusterState> getMutableBundleStates()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,OnClusterState>

getReferentialSyncConfigState()

public OnClusterState getReferentialSyncConfigState()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
OnClusterState

The referentialSyncConfigState.

getReferentialSyncConfigStateBuilder()

public OnClusterState.Builder getReferentialSyncConfigStateBuilder()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
OnClusterState.Builder

getReferentialSyncConfigStateOrBuilder()

public OnClusterStateOrBuilder getReferentialSyncConfigStateOrBuilder()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
OnClusterStateOrBuilder

getTemplateLibraryState()

public OnClusterState getTemplateLibraryState()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
OnClusterState

The templateLibraryState.

getTemplateLibraryStateBuilder()

public OnClusterState.Builder getTemplateLibraryStateBuilder()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
OnClusterState.Builder

getTemplateLibraryStateOrBuilder()

public OnClusterStateOrBuilder getTemplateLibraryStateOrBuilder()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
OnClusterStateOrBuilder

hasReferentialSyncConfigState()

public boolean hasReferentialSyncConfigState()

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Returns
Type Description
boolean

Whether the referentialSyncConfigState field is set.

hasTemplateLibraryState()

public boolean hasTemplateLibraryState()

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Returns
Type Description
boolean

Whether the templateLibraryState field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PolicyContentState other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReferentialSyncConfigState(OnClusterState value)

public PolicyContentState.Builder mergeReferentialSyncConfigState(OnClusterState value)

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Parameter
Name Description
value OnClusterState
Returns
Type Description
PolicyContentState.Builder

mergeTemplateLibraryState(OnClusterState value)

public PolicyContentState.Builder mergeTemplateLibraryState(OnClusterState value)

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Parameter
Name Description
value OnClusterState
Returns
Type Description
PolicyContentState.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllBundleStates(Map<String,OnClusterState> values)

public PolicyContentState.Builder putAllBundleStates(Map<String,OnClusterState> values)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameter
Name Description
values Map<String,OnClusterState>
Returns
Type Description
PolicyContentState.Builder

putBundleStates(String key, OnClusterState value)

public PolicyContentState.Builder putBundleStates(String key, OnClusterState value)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameters
Name Description
key String
value OnClusterState
Returns
Type Description
PolicyContentState.Builder

putBundleStatesBuilderIfAbsent(String key)

public OnClusterState.Builder putBundleStatesBuilderIfAbsent(String key)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameter
Name Description
key String
Returns
Type Description
OnClusterState.Builder

removeBundleStates(String key)

public PolicyContentState.Builder removeBundleStates(String key)

The state of the any bundles included in the chosen version of the manifest

map<string, .google.cloud.gkehub.policycontroller.v1beta.OnClusterState> bundle_states = 2;

Parameter
Name Description
key String
Returns
Type Description
PolicyContentState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setReferentialSyncConfigState(OnClusterState value)

public PolicyContentState.Builder setReferentialSyncConfigState(OnClusterState value)

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Parameter
Name Description
value OnClusterState
Returns
Type Description
PolicyContentState.Builder

setReferentialSyncConfigState(OnClusterState.Builder builderForValue)

public PolicyContentState.Builder setReferentialSyncConfigState(OnClusterState.Builder builderForValue)

The state of the referential data sync configuration. This could represent the state of either the syncSet object(s) or the config object, depending on the version of PoCo configured by the user.

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState referential_sync_config_state = 3;

Parameter
Name Description
builderForValue OnClusterState.Builder
Returns
Type Description
PolicyContentState.Builder

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

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

setTemplateLibraryState(OnClusterState value)

public PolicyContentState.Builder setTemplateLibraryState(OnClusterState value)

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Parameter
Name Description
value OnClusterState
Returns
Type Description
PolicyContentState.Builder

setTemplateLibraryState(OnClusterState.Builder builderForValue)

public PolicyContentState.Builder setTemplateLibraryState(OnClusterState.Builder builderForValue)

The state of the template library

.google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;

Parameter
Name Description
builderForValue OnClusterState.Builder
Returns
Type Description
PolicyContentState.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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