Class BinaryAuthorization.PolicyBinding.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BinaryAuthorization.PolicyBinding.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.GeneratedMessageV3.Builder<BinaryAuthorization.PolicyBinding.Builder>
      • getDefaultInstanceForType

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

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

        public BinaryAuthorization.PolicyBinding buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BinaryAuthorization.PolicyBinding.Builder>
      • hasName

        public boolean hasName()
         The relative resource name of the binauthz platform policy to audit. GKE
         platform policies have the following format:
         `projects/{project_number}/platforms/gke/policies/{policy_id}`.
         
        optional string name = 1;
        Specified by:
        hasName in interface BinaryAuthorization.PolicyBindingOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public String getName()
         The relative resource name of the binauthz platform policy to audit. GKE
         platform policies have the following format:
         `projects/{project_number}/platforms/gke/policies/{policy_id}`.
         
        optional string name = 1;
        Specified by:
        getName in interface BinaryAuthorization.PolicyBindingOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The relative resource name of the binauthz platform policy to audit. GKE
         platform policies have the following format:
         `projects/{project_number}/platforms/gke/policies/{policy_id}`.
         
        optional string name = 1;
        Specified by:
        getNameBytes in interface BinaryAuthorization.PolicyBindingOrBuilder
        Returns:
        The bytes for name.
      • setName

        public BinaryAuthorization.PolicyBinding.Builder setName​(String value)
         The relative resource name of the binauthz platform policy to audit. GKE
         platform policies have the following format:
         `projects/{project_number}/platforms/gke/policies/{policy_id}`.
         
        optional string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public BinaryAuthorization.PolicyBinding.Builder clearName()
         The relative resource name of the binauthz platform policy to audit. GKE
         platform policies have the following format:
         `projects/{project_number}/platforms/gke/policies/{policy_id}`.
         
        optional string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public BinaryAuthorization.PolicyBinding.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The relative resource name of the binauthz platform policy to audit. GKE
         platform policies have the following format:
         `projects/{project_number}/platforms/gke/policies/{policy_id}`.
         
        optional string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.