public static final class GcpCredentials.Builder extends GeneratedMessageV3.Builder<GcpCredentials.Builder> implements GcpCredentialsOrBuilder
Credentials issued by GCP which are linked to the platform attestation. These will be verified server-side as part of attestaion verification.
Protobuf type google.cloud.confidentialcomputing.v1.GcpCredentials
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GcpCredentials.BuilderImplements
GcpCredentialsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllServiceAccountIdTokens(Iterable<String> values)
public GcpCredentials.Builder addAllServiceAccountIdTokens(Iterable<String> values)
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Parameter | |
---|---|
Name | Description |
values | Iterable<String> The serviceAccountIdTokens to add. |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GcpCredentials.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
addServiceAccountIdTokens(String value)
public GcpCredentials.Builder addServiceAccountIdTokens(String value)
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Parameter | |
---|---|
Name | Description |
value | String The serviceAccountIdTokens to add. |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder | This builder for chaining. |
addServiceAccountIdTokensBytes(ByteString value)
public GcpCredentials.Builder addServiceAccountIdTokensBytes(ByteString value)
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes of the serviceAccountIdTokens to add. |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder | This builder for chaining. |
build()
public GcpCredentials build()
Returns | |
---|---|
Type | Description |
GcpCredentials |
buildPartial()
public GcpCredentials buildPartial()
Returns | |
---|---|
Type | Description |
GcpCredentials |
clear()
public GcpCredentials.Builder clear()
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
clearField(Descriptors.FieldDescriptor field)
public GcpCredentials.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public GcpCredentials.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
clearServiceAccountIdTokens()
public GcpCredentials.Builder clearServiceAccountIdTokens()
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder | This builder for chaining. |
clone()
public GcpCredentials.Builder clone()
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
getDefaultInstanceForType()
public GcpCredentials getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GcpCredentials |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getServiceAccountIdTokens(int index)
public String getServiceAccountIdTokens(int index)
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Parameter | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String | The serviceAccountIdTokens at the given index. |
getServiceAccountIdTokensBytes(int index)
public ByteString getServiceAccountIdTokensBytes(int index)
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Parameter | |
---|---|
Name | Description |
index | int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString | The bytes of the serviceAccountIdTokens at the given index. |
getServiceAccountIdTokensCount()
public int getServiceAccountIdTokensCount()
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Returns | |
---|---|
Type | Description |
int | The count of serviceAccountIdTokens. |
getServiceAccountIdTokensList()
public ProtocolStringList getServiceAccountIdTokensList()
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Returns | |
---|---|
Type | Description |
ProtocolStringList | A list containing the serviceAccountIdTokens. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(GcpCredentials other)
public GcpCredentials.Builder mergeFrom(GcpCredentials other)
Parameter | |
---|---|
Name | Description |
other | GcpCredentials |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GcpCredentials.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public GcpCredentials.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GcpCredentials.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GcpCredentials.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GcpCredentials.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |
setServiceAccountIdTokens(int index, String value)
public GcpCredentials.Builder setServiceAccountIdTokens(int index, String value)
Same as id_tokens, but as a string.
repeated string service_account_id_tokens = 2;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The serviceAccountIdTokens to set. |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GcpCredentials.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GcpCredentials.Builder |