Class CreateAttestorRequest.Builder

  • All Implemented Interfaces:
    CreateAttestorRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    CreateAttestorRequest

    public static final class CreateAttestorRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>
    implements CreateAttestorRequestOrBuilder
     Request message for [BinauthzManagementService.CreateAttestor][].
     
    Protobuf type google.cloud.binaryauthorization.v1beta1.CreateAttestorRequest
    • 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<CreateAttestorRequest.Builder>
      • clear

        public CreateAttestorRequest.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.GeneratedMessageV3.Builder<CreateAttestorRequest.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<CreateAttestorRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateAttestorRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>
      • clearField

        public CreateAttestorRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>
      • clearOneof

        public CreateAttestorRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>
      • setRepeatedField

        public CreateAttestorRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>
      • addRepeatedField

        public CreateAttestorRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>
      • isInitialized

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

        public CreateAttestorRequest.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<CreateAttestorRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateAttestorRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateAttestorRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateAttestorRequest.Builder setParent​(String value)
         Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateAttestorRequest.Builder clearParent()
         Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateAttestorRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent of this [attestor][google.cloud.binaryauthorization.v1beta1.Attestor].
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getAttestorId

        public String getAttestorId()
         Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
         
        string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAttestorId in interface CreateAttestorRequestOrBuilder
        Returns:
        The attestorId.
      • getAttestorIdBytes

        public com.google.protobuf.ByteString getAttestorIdBytes()
         Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
         
        string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAttestorIdBytes in interface CreateAttestorRequestOrBuilder
        Returns:
        The bytes for attestorId.
      • setAttestorId

        public CreateAttestorRequest.Builder setAttestorId​(String value)
         Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
         
        string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The attestorId to set.
        Returns:
        This builder for chaining.
      • clearAttestorId

        public CreateAttestorRequest.Builder clearAttestorId()
         Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
         
        string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setAttestorIdBytes

        public CreateAttestorRequest.Builder setAttestorIdBytes​(com.google.protobuf.ByteString value)
         Required. The [attestors][google.cloud.binaryauthorization.v1beta1.Attestor] ID.
         
        string attestor_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for attestorId to set.
        Returns:
        This builder for chaining.
      • hasAttestor

        public boolean hasAttestor()
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAttestor in interface CreateAttestorRequestOrBuilder
        Returns:
        Whether the attestor field is set.
      • getAttestor

        public Attestor getAttestor()
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAttestor in interface CreateAttestorRequestOrBuilder
        Returns:
        The attestor.
      • setAttestor

        public CreateAttestorRequest.Builder setAttestor​(Attestor value)
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
      • setAttestor

        public CreateAttestorRequest.Builder setAttestor​(Attestor.Builder builderForValue)
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
      • mergeAttestor

        public CreateAttestorRequest.Builder mergeAttestor​(Attestor value)
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
      • clearAttestor

        public CreateAttestorRequest.Builder clearAttestor()
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
      • getAttestorBuilder

        public Attestor.Builder getAttestorBuilder()
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
      • getAttestorOrBuilder

        public AttestorOrBuilder getAttestorOrBuilder()
         Required. The initial [attestor][google.cloud.binaryauthorization.v1beta1.Attestor] value. The service will
         overwrite the [attestor name][google.cloud.binaryauthorization.v1beta1.Attestor.name] field with the resource name,
         in the format `projects/*/attestors/*`.
         
        .google.cloud.binaryauthorization.v1beta1.Attestor attestor = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAttestorOrBuilder in interface CreateAttestorRequestOrBuilder
      • setUnknownFields

        public final CreateAttestorRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>
      • mergeUnknownFields

        public final CreateAttestorRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateAttestorRequest.Builder>