Class Identity.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IdentityOrBuilder, java.lang.Cloneable
    Enclosing class:
    Identity

    public static final class Identity.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
    implements IdentityOrBuilder
    Protobuf type grpc.gcp.Identity
    • Field Detail

      • identityOneofCase_

        private int identityOneofCase_
      • identityOneof_

        private java.lang.Object identityOneof_
      • bitField0_

        private int bitField0_
      • attributes_

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> attributes_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • 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<Identity.Builder>
      • internalGetMutableMapFieldReflection

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

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

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

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

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

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

        private void buildPartial0​(Identity result)
      • buildPartialOneofs

        private void buildPartialOneofs​(Identity result)
      • mergeFrom

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

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

        public Identity.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws java.io.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<Identity.Builder>
        Throws:
        java.io.IOException
      • hasServiceAccount

        public boolean hasServiceAccount()
         Service account of a connection endpoint.
         
        string service_account = 1;
        Specified by:
        hasServiceAccount in interface IdentityOrBuilder
        Returns:
        Whether the serviceAccount field is set.
      • getServiceAccount

        public java.lang.String getServiceAccount()
         Service account of a connection endpoint.
         
        string service_account = 1;
        Specified by:
        getServiceAccount in interface IdentityOrBuilder
        Returns:
        The serviceAccount.
      • getServiceAccountBytes

        public com.google.protobuf.ByteString getServiceAccountBytes()
         Service account of a connection endpoint.
         
        string service_account = 1;
        Specified by:
        getServiceAccountBytes in interface IdentityOrBuilder
        Returns:
        The bytes for serviceAccount.
      • setServiceAccount

        public Identity.Builder setServiceAccount​(java.lang.String value)
         Service account of a connection endpoint.
         
        string service_account = 1;
        Parameters:
        value - The serviceAccount to set.
        Returns:
        This builder for chaining.
      • clearServiceAccount

        public Identity.Builder clearServiceAccount()
         Service account of a connection endpoint.
         
        string service_account = 1;
        Returns:
        This builder for chaining.
      • setServiceAccountBytes

        public Identity.Builder setServiceAccountBytes​(com.google.protobuf.ByteString value)
         Service account of a connection endpoint.
         
        string service_account = 1;
        Parameters:
        value - The bytes for serviceAccount to set.
        Returns:
        This builder for chaining.
      • hasHostname

        public boolean hasHostname()
         Hostname of a connection endpoint.
         
        string hostname = 2;
        Specified by:
        hasHostname in interface IdentityOrBuilder
        Returns:
        Whether the hostname field is set.
      • getHostname

        public java.lang.String getHostname()
         Hostname of a connection endpoint.
         
        string hostname = 2;
        Specified by:
        getHostname in interface IdentityOrBuilder
        Returns:
        The hostname.
      • getHostnameBytes

        public com.google.protobuf.ByteString getHostnameBytes()
         Hostname of a connection endpoint.
         
        string hostname = 2;
        Specified by:
        getHostnameBytes in interface IdentityOrBuilder
        Returns:
        The bytes for hostname.
      • setHostname

        public Identity.Builder setHostname​(java.lang.String value)
         Hostname of a connection endpoint.
         
        string hostname = 2;
        Parameters:
        value - The hostname to set.
        Returns:
        This builder for chaining.
      • clearHostname

        public Identity.Builder clearHostname()
         Hostname of a connection endpoint.
         
        string hostname = 2;
        Returns:
        This builder for chaining.
      • setHostnameBytes

        public Identity.Builder setHostnameBytes​(com.google.protobuf.ByteString value)
         Hostname of a connection endpoint.
         
        string hostname = 2;
        Parameters:
        value - The bytes for hostname to set.
        Returns:
        This builder for chaining.
      • internalGetAttributes

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetAttributes()
      • internalGetMutableAttributes

        private com.google.protobuf.MapField<java.lang.String,​java.lang.String> internalGetMutableAttributes()
      • containsAttributes

        public boolean containsAttributes​(java.lang.String key)
         Additional attributes of the identity.
         
        map<string, string> attributes = 3;
        Specified by:
        containsAttributes in interface IdentityOrBuilder
      • getAttributesMap

        public java.util.Map<java.lang.String,​java.lang.String> getAttributesMap()
         Additional attributes of the identity.
         
        map<string, string> attributes = 3;
        Specified by:
        getAttributesMap in interface IdentityOrBuilder
      • getAttributesOrDefault

        public java.lang.String getAttributesOrDefault​(java.lang.String key,
                                                       java.lang.String defaultValue)
         Additional attributes of the identity.
         
        map<string, string> attributes = 3;
        Specified by:
        getAttributesOrDefault in interface IdentityOrBuilder
      • getAttributesOrThrow

        public java.lang.String getAttributesOrThrow​(java.lang.String key)
         Additional attributes of the identity.
         
        map<string, string> attributes = 3;
        Specified by:
        getAttributesOrThrow in interface IdentityOrBuilder
      • removeAttributes

        public Identity.Builder removeAttributes​(java.lang.String key)
         Additional attributes of the identity.
         
        map<string, string> attributes = 3;
      • getMutableAttributes

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getMutableAttributes()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAttributes

        public Identity.Builder putAttributes​(java.lang.String key,
                                              java.lang.String value)
         Additional attributes of the identity.
         
        map<string, string> attributes = 3;
      • putAllAttributes

        public Identity.Builder putAllAttributes​(java.util.Map<java.lang.String,​java.lang.String> values)
         Additional attributes of the identity.
         
        map<string, string> attributes = 3;