Class PolicyContentState.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder>
com.google.cloud.gkehub.policycontroller.v1beta.PolicyContentState.Builder
All Implemented Interfaces:
PolicyContentStateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PolicyContentState

public static final class PolicyContentState.Builder extends com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder> implements PolicyContentStateOrBuilder
 The state of the policy controller policy content
 
Protobuf type google.cloud.gkehub.policycontroller.v1beta.PolicyContentState
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder>
    • getDefaultInstanceForType

      public PolicyContentState getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PolicyContentState build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PolicyContentState buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PolicyContentState.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyContentState.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PolicyContentState.Builder>
    • mergeFrom

      public PolicyContentState.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PolicyContentState.Builder>
      Throws:
      IOException
    • hasTemplateLibraryState

      public boolean hasTemplateLibraryState()
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
      Specified by:
      hasTemplateLibraryState in interface PolicyContentStateOrBuilder
      Returns:
      Whether the templateLibraryState field is set.
    • getTemplateLibraryState

      public OnClusterState getTemplateLibraryState()
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
      Specified by:
      getTemplateLibraryState in interface PolicyContentStateOrBuilder
      Returns:
      The templateLibraryState.
    • setTemplateLibraryState

      public PolicyContentState.Builder setTemplateLibraryState(OnClusterState value)
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
    • setTemplateLibraryState

      public PolicyContentState.Builder setTemplateLibraryState(OnClusterState.Builder builderForValue)
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
    • mergeTemplateLibraryState

      public PolicyContentState.Builder mergeTemplateLibraryState(OnClusterState value)
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
    • clearTemplateLibraryState

      public PolicyContentState.Builder clearTemplateLibraryState()
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
    • getTemplateLibraryStateBuilder

      public OnClusterState.Builder getTemplateLibraryStateBuilder()
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
    • getTemplateLibraryStateOrBuilder

      public OnClusterStateOrBuilder getTemplateLibraryStateOrBuilder()
       The state of the template library
       
      .google.cloud.gkehub.policycontroller.v1beta.OnClusterState template_library_state = 1;
      Specified by:
      getTemplateLibraryStateOrBuilder in interface PolicyContentStateOrBuilder
    • getBundleStatesCount

      public int getBundleStatesCount()
      Description copied from interface: PolicyContentStateOrBuilder
       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;
      Specified by:
      getBundleStatesCount in interface PolicyContentStateOrBuilder
    • containsBundleStates

      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;
      Specified by:
      containsBundleStates in interface PolicyContentStateOrBuilder
    • getBundleStates

      @Deprecated public Map<String,OnClusterState> getBundleStates()
      Deprecated.
      Specified by:
      getBundleStates in interface PolicyContentStateOrBuilder
    • 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;
      Specified by:
      getBundleStatesMap in interface PolicyContentStateOrBuilder
    • getBundleStatesOrDefault

      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;
      Specified by:
      getBundleStatesOrDefault in interface PolicyContentStateOrBuilder
    • getBundleStatesOrThrow

      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;
      Specified by:
      getBundleStatesOrThrow in interface PolicyContentStateOrBuilder
    • clearBundleStates

      public PolicyContentState.Builder clearBundleStates()
    • removeBundleStates

      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;
    • getMutableBundleStates

      @Deprecated public Map<String,OnClusterState> getMutableBundleStates()
      Deprecated.
      Use alternate mutation accessors instead.
    • putBundleStates

      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;
    • putAllBundleStates

      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;
    • putBundleStatesBuilderIfAbsent

      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;
    • 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;
      Specified by:
      hasReferentialSyncConfigState in interface PolicyContentStateOrBuilder
      Returns:
      Whether the referentialSyncConfigState field is set.
    • 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;
      Specified by:
      getReferentialSyncConfigState in interface PolicyContentStateOrBuilder
      Returns:
      The referentialSyncConfigState.
    • setReferentialSyncConfigState

      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;
    • setReferentialSyncConfigState

      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;
    • mergeReferentialSyncConfigState

      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;
    • 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;
    • 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;
    • 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;
      Specified by:
      getReferentialSyncConfigStateOrBuilder in interface PolicyContentStateOrBuilder