Package io.grpc.alts.internal
Class Identity.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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,java.lang.Cloneable
- Enclosing class:
- Identity
public static final class Identity.Builder extends com.google.protobuf.GeneratedMessage.Builder<Identity.Builder> implements IdentityOrBuilder
Protobuf typegrpc.gcp.Identity
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.protobuf.MapField<java.lang.String,java.lang.String>attributes_private intbitField0_private java.lang.ObjectidentityOneof_private intidentityOneofCase_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Identitybuild()IdentitybuildPartial()private voidbuildPartial0(Identity result)private voidbuildPartialOneofs(Identity result)Identity.Builderclear()Identity.BuilderclearAttributes()Identity.BuilderclearHostname()Hostname of a connection endpoint.Identity.BuilderclearIdentityOneof()Identity.BuilderclearServiceAccount()Service account of a connection endpoint.booleancontainsAttributes(java.lang.String key)Additional attributes of the identity.java.util.Map<java.lang.String,java.lang.String>getAttributes()Deprecated.intgetAttributesCount()Additional attributes of the identity.java.util.Map<java.lang.String,java.lang.String>getAttributesMap()Additional attributes of the identity.java.lang.StringgetAttributesOrDefault(java.lang.String key, java.lang.String defaultValue)Additional attributes of the identity.java.lang.StringgetAttributesOrThrow(java.lang.String key)Additional attributes of the identity.IdentitygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetHostname()Hostname of a connection endpoint.com.google.protobuf.ByteStringgetHostnameBytes()Hostname of a connection endpoint.Identity.IdentityOneofCasegetIdentityOneofCase()java.util.Map<java.lang.String,java.lang.String>getMutableAttributes()Deprecated.java.lang.StringgetServiceAccount()Service account of a connection endpoint.com.google.protobuf.ByteStringgetServiceAccountBytes()Service account of a connection endpoint.booleanhasHostname()Hostname of a connection endpoint.booleanhasServiceAccount()Service account of a connection endpoint.private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetAttributes()protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)private com.google.protobuf.MapField<java.lang.String,java.lang.String>internalGetMutableAttributes()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Identity.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Identity.BuildermergeFrom(com.google.protobuf.Message other)Identity.BuildermergeFrom(Identity other)Identity.BuilderputAllAttributes(java.util.Map<java.lang.String,java.lang.String> values)Additional attributes of the identity.Identity.BuilderputAttributes(java.lang.String key, java.lang.String value)Additional attributes of the identity.Identity.BuilderremoveAttributes(java.lang.String key)Additional attributes of the identity.Identity.BuildersetHostname(java.lang.String value)Hostname of a connection endpoint.Identity.BuildersetHostnameBytes(com.google.protobuf.ByteString value)Hostname of a connection endpoint.Identity.BuildersetServiceAccount(java.lang.String value)Service account of a connection endpoint.Identity.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)Service account of a connection endpoint.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
clear
public Identity.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
getDefaultInstanceForType
public Identity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Identity build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Identity buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>
-
mergeFrom
public Identity.Builder mergeFrom(Identity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>- Throws:
java.io.IOException
-
getIdentityOneofCase
public Identity.IdentityOneofCase getIdentityOneofCase()
- Specified by:
getIdentityOneofCasein interfaceIdentityOrBuilder
-
clearIdentityOneof
public Identity.Builder clearIdentityOneof()
-
hasServiceAccount
public boolean hasServiceAccount()
Service account of a connection endpoint.
string service_account = 1;- Specified by:
hasServiceAccountin interfaceIdentityOrBuilder- 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:
getServiceAccountin interfaceIdentityOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Service account of a connection endpoint.
string service_account = 1;- Specified by:
getServiceAccountBytesin interfaceIdentityOrBuilder- 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:
hasHostnamein interfaceIdentityOrBuilder- Returns:
- Whether the hostname field is set.
-
getHostname
public java.lang.String getHostname()
Hostname of a connection endpoint.
string hostname = 2;- Specified by:
getHostnamein interfaceIdentityOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
Hostname of a connection endpoint.
string hostname = 2;- Specified by:
getHostnameBytesin interfaceIdentityOrBuilder- 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()
-
getAttributesCount
public int getAttributesCount()
Description copied from interface:IdentityOrBuilderAdditional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
getAttributesCountin interfaceIdentityOrBuilder
-
containsAttributes
public boolean containsAttributes(java.lang.String key)
Additional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
containsAttributesin interfaceIdentityOrBuilder
-
getAttributes
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Deprecated.UsegetAttributesMap()instead.- Specified by:
getAttributesin interfaceIdentityOrBuilder
-
getAttributesMap
public java.util.Map<java.lang.String,java.lang.String> getAttributesMap()
Additional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
getAttributesMapin interfaceIdentityOrBuilder
-
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:
getAttributesOrDefaultin interfaceIdentityOrBuilder
-
getAttributesOrThrow
public java.lang.String getAttributesOrThrow(java.lang.String key)
Additional attributes of the identity.
map<string, string> attributes = 3;- Specified by:
getAttributesOrThrowin interfaceIdentityOrBuilder
-
clearAttributes
public Identity.Builder clearAttributes()
-
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;
-
-