Class ServiceIdentity.Builder

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

    public static final class ServiceIdentity.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ServiceIdentity.Builder>
    implements ServiceIdentityOrBuilder
     Service identity for a service. This is the identity that service producer
     should use to access consumer resources.
     
    Protobuf type google.api.serviceusage.v1beta1.ServiceIdentity
    • 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<ServiceIdentity.Builder>
      • clear

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

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

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

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

        public ServiceIdentity.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<ServiceIdentity.Builder>
      • setField

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

        public ServiceIdentity.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<ServiceIdentity.Builder>
      • clearOneof

        public ServiceIdentity.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<ServiceIdentity.Builder>
      • setRepeatedField

        public ServiceIdentity.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<ServiceIdentity.Builder>
      • addRepeatedField

        public ServiceIdentity.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<ServiceIdentity.Builder>
      • mergeFrom

        public ServiceIdentity.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<ServiceIdentity.Builder>
      • isInitialized

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

        public ServiceIdentity.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<ServiceIdentity.Builder>
        Throws:
        IOException
      • getEmail

        public String getEmail()
         The email address of the service account that a service producer would use
         to access consumer resources.
         
        string email = 1;
        Specified by:
        getEmail in interface ServiceIdentityOrBuilder
        Returns:
        The email.
      • getEmailBytes

        public com.google.protobuf.ByteString getEmailBytes()
         The email address of the service account that a service producer would use
         to access consumer resources.
         
        string email = 1;
        Specified by:
        getEmailBytes in interface ServiceIdentityOrBuilder
        Returns:
        The bytes for email.
      • setEmail

        public ServiceIdentity.Builder setEmail​(String value)
         The email address of the service account that a service producer would use
         to access consumer resources.
         
        string email = 1;
        Parameters:
        value - The email to set.
        Returns:
        This builder for chaining.
      • clearEmail

        public ServiceIdentity.Builder clearEmail()
         The email address of the service account that a service producer would use
         to access consumer resources.
         
        string email = 1;
        Returns:
        This builder for chaining.
      • setEmailBytes

        public ServiceIdentity.Builder setEmailBytes​(com.google.protobuf.ByteString value)
         The email address of the service account that a service producer would use
         to access consumer resources.
         
        string email = 1;
        Parameters:
        value - The bytes for email to set.
        Returns:
        This builder for chaining.
      • getUniqueId

        public String getUniqueId()
         The unique and stable id of the service account.
         https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
         
        string unique_id = 2;
        Specified by:
        getUniqueId in interface ServiceIdentityOrBuilder
        Returns:
        The uniqueId.
      • getUniqueIdBytes

        public com.google.protobuf.ByteString getUniqueIdBytes()
         The unique and stable id of the service account.
         https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
         
        string unique_id = 2;
        Specified by:
        getUniqueIdBytes in interface ServiceIdentityOrBuilder
        Returns:
        The bytes for uniqueId.
      • setUniqueId

        public ServiceIdentity.Builder setUniqueId​(String value)
         The unique and stable id of the service account.
         https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
         
        string unique_id = 2;
        Parameters:
        value - The uniqueId to set.
        Returns:
        This builder for chaining.
      • clearUniqueId

        public ServiceIdentity.Builder clearUniqueId()
         The unique and stable id of the service account.
         https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
         
        string unique_id = 2;
        Returns:
        This builder for chaining.
      • setUniqueIdBytes

        public ServiceIdentity.Builder setUniqueIdBytes​(com.google.protobuf.ByteString value)
         The unique and stable id of the service account.
         https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts#ServiceAccount
         
        string unique_id = 2;
        Parameters:
        value - The bytes for uniqueId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ServiceIdentity.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<ServiceIdentity.Builder>
      • mergeUnknownFields

        public final ServiceIdentity.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<ServiceIdentity.Builder>