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 int
bitField0_
private java.lang.Object
identityOneof_
private int
identityOneofCase_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Identity
build()
Identity
buildPartial()
private void
buildPartial0(Identity result)
private void
buildPartialOneofs(Identity result)
Identity.Builder
clear()
Identity.Builder
clearAttributes()
Identity.Builder
clearHostname()
Hostname of a connection endpoint.Identity.Builder
clearIdentityOneof()
Identity.Builder
clearServiceAccount()
Service account of a connection endpoint.boolean
containsAttributes(java.lang.String key)
Additional attributes of the identity.java.util.Map<java.lang.String,java.lang.String>
getAttributes()
Deprecated.int
getAttributesCount()
Additional attributes of the identity.java.util.Map<java.lang.String,java.lang.String>
getAttributesMap()
Additional attributes of the identity.java.lang.String
getAttributesOrDefault(java.lang.String key, java.lang.String defaultValue)
Additional attributes of the identity.java.lang.String
getAttributesOrThrow(java.lang.String key)
Additional attributes of the identity.Identity
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getHostname()
Hostname of a connection endpoint.com.google.protobuf.ByteString
getHostnameBytes()
Hostname of a connection endpoint.Identity.IdentityOneofCase
getIdentityOneofCase()
java.util.Map<java.lang.String,java.lang.String>
getMutableAttributes()
Deprecated.java.lang.String
getServiceAccount()
Service account of a connection endpoint.com.google.protobuf.ByteString
getServiceAccountBytes()
Service account of a connection endpoint.boolean
hasHostname()
Hostname of a connection endpoint.boolean
hasServiceAccount()
Service account of a connection endpoint.private com.google.protobuf.MapField<java.lang.String,java.lang.String>
internalGetAttributes()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMapFieldReflection(int number)
private com.google.protobuf.MapField<java.lang.String,java.lang.String>
internalGetMutableAttributes()
protected com.google.protobuf.MapFieldReflectionAccessor
internalGetMutableMapFieldReflection(int number)
boolean
isInitialized()
Identity.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Identity.Builder
mergeFrom(com.google.protobuf.Message other)
Identity.Builder
mergeFrom(Identity other)
Identity.Builder
putAllAttributes(java.util.Map<java.lang.String,java.lang.String> values)
Additional attributes of the identity.Identity.Builder
putAttributes(java.lang.String key, java.lang.String value)
Additional attributes of the identity.Identity.Builder
removeAttributes(java.lang.String key)
Additional attributes of the identity.Identity.Builder
setHostname(java.lang.String value)
Hostname of a connection endpoint.Identity.Builder
setHostnameBytes(com.google.protobuf.ByteString value)
Hostname of a connection endpoint.Identity.Builder
setServiceAccount(java.lang.String value)
Service account of a connection endpoint.Identity.Builder
setServiceAccountBytes(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:
internalGetMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflection
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
clear
public Identity.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Identity.Builder>
-
getDefaultInstanceForType
public Identity getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Identity build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Identity buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>
-
mergeFrom
public Identity.Builder mergeFrom(Identity other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Identity.Builder>
- Throws:
java.io.IOException
-
getIdentityOneofCase
public Identity.IdentityOneofCase getIdentityOneofCase()
- Specified by:
getIdentityOneofCase
in interfaceIdentityOrBuilder
-
clearIdentityOneof
public Identity.Builder clearIdentityOneof()
-
hasServiceAccount
public boolean hasServiceAccount()
Service account of a connection endpoint.
string service_account = 1;
- Specified by:
hasServiceAccount
in 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:
getServiceAccount
in interfaceIdentityOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
Service account of a connection endpoint.
string service_account = 1;
- Specified by:
getServiceAccountBytes
in 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:
hasHostname
in interfaceIdentityOrBuilder
- 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 interfaceIdentityOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
Hostname of a connection endpoint.
string hostname = 2;
- Specified by:
getHostnameBytes
in 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:IdentityOrBuilder
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
getAttributesCount
in interfaceIdentityOrBuilder
-
containsAttributes
public boolean containsAttributes(java.lang.String key)
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
containsAttributes
in interfaceIdentityOrBuilder
-
getAttributes
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getAttributes()
Deprecated.UsegetAttributesMap()
instead.- Specified by:
getAttributes
in 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:
getAttributesMap
in 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:
getAttributesOrDefault
in interfaceIdentityOrBuilder
-
getAttributesOrThrow
public java.lang.String getAttributesOrThrow(java.lang.String key)
Additional attributes of the identity.
map<string, string> attributes = 3;
- Specified by:
getAttributesOrThrow
in 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;
-
-