Class Identity.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Identity.Builder>
com.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
io.grpc.alts.internal.Identity.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IdentityOrBuilder, 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 Details

    • identityOneofCase_

      private int identityOneofCase_
    • identityOneof_

      private Object identityOneof_
    • bitField0_

      private int bitField0_
    • attributes_

      private com.google.protobuf.MapField<String,String> attributes_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

      private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
  • 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<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>
    • mergeFrom

      public Identity.Builder mergeFrom(Identity other)
    • 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 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:
      IOException
    • getIdentityOneofCase

      public Identity.IdentityOneofCase getIdentityOneofCase()
      Specified by:
      getIdentityOneofCase in interface IdentityOrBuilder
    • clearIdentityOneof

      public Identity.Builder clearIdentityOneof()
    • 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 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(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 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(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<String,String> internalGetAttributes()
    • internalGetMutableAttributes

      private com.google.protobuf.MapField<String,String> internalGetMutableAttributes()
    • getAttributesCount

      public int getAttributesCount()
      Description copied from interface: IdentityOrBuilder
       Additional attributes of the identity.
       
      map<string, string> attributes = 3;
      Specified by:
      getAttributesCount in interface IdentityOrBuilder
    • containsAttributes

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

      @Deprecated public Map<String,String> getAttributes()
      Deprecated.
      Use getAttributesMap() instead.
      Specified by:
      getAttributes in interface IdentityOrBuilder
    • getAttributesMap

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

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

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

      public Identity.Builder clearAttributes()
    • removeAttributes

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

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

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

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