Class ServiceAgent (0.4.0)

public final class ServiceAgent extends GeneratedMessage implements ServiceAgentOrBuilder

Message describing ServiceAgent object

Protobuf type google.cloud.workloadidentity.v1.ServiceAgent

Static Fields

CONTAINER_FIELD_NUMBER

public static final int CONTAINER_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PRINCIPAL_FIELD_NUMBER

public static final int PRINCIPAL_FIELD_NUMBER
Field Value
Type Description
int

ROLE_FIELD_NUMBER

public static final int ROLE_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_PRODUCER_FIELD_NUMBER

public static final int SERVICE_PRODUCER_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ServiceAgent getDefaultInstance()
Returns
Type Description
ServiceAgent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static ServiceAgent.Builder newBuilder()
Returns
Type Description
ServiceAgent.Builder

newBuilder(ServiceAgent prototype)

public static ServiceAgent.Builder newBuilder(ServiceAgent prototype)
Parameter
Name Description
prototype ServiceAgent
Returns
Type Description
ServiceAgent.Builder

parseDelimitedFrom(InputStream input)

public static ServiceAgent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceAgent
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceAgent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAgent
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ServiceAgent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ServiceAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServiceAgent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServiceAgent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ServiceAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServiceAgent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServiceAgent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ServiceAgent
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceAgent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAgent
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ServiceAgent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ServiceAgent
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceAgent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAgent
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ServiceAgent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ServiceAgent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServiceAgent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAgent
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ServiceAgent> parser()
Returns
Type Description
Parser<ServiceAgent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getContainer()

public String getContainer()

Optional. Name of the container that the service agent is associated with. For example:

  • projects/1234
  • folders/1234
  • organizations/2344

string container = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The container.

getContainerBytes()

public ByteString getContainerBytes()

Optional. Name of the container that the service agent is associated with. For example:

  • projects/1234
  • folders/1234
  • organizations/2344

string container = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for container.

getDefaultInstanceForType()

public ServiceAgent getDefaultInstanceForType()
Returns
Type Description
ServiceAgent

getName()

public String getName()

Identifier. The name of the service agent resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The name of the service agent resource

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<ServiceAgent> getParserForType()
Returns
Type Description
Parser<ServiceAgent>
Overrides

getPrincipal()

public String getPrincipal()

Optional. The principal identifier for the service agent. This identifier is used in allow policies to grant access to the service agent.

string principal = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The principal.

getPrincipalBytes()

public ByteString getPrincipalBytes()

Optional. The principal identifier for the service agent. This identifier is used in allow policies to grant access to the service agent.

string principal = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for principal.

getRole()

public String getRole()

Optional. The role that should be granted to service agent on consumer project, if any. For example, "roles/aiplatform.serviceAgent".

string role = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The role.

getRoleBytes()

public ByteString getRoleBytes()

Optional. The role that should be granted to service agent on consumer project, if any. For example, "roles/aiplatform.serviceAgent".

string role = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for role.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceProducer()

public String getServiceProducer()

Optional. The service the agent belongs to. For example, bigquery.googleapis.com

string service_producer = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serviceProducer.

getServiceProducerBytes()

public ByteString getServiceProducerBytes()

Optional. The service the agent belongs to. For example, bigquery.googleapis.com

string service_producer = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serviceProducer.

getState()

public ServiceAgent.State getState()

Output only. Service agent state.

.google.cloud.workloadidentity.v1.ServiceAgent.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ServiceAgent.State

The state.

getStateValue()

public int getStateValue()

Output only. Service agent state.

.google.cloud.workloadidentity.v1.ServiceAgent.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ServiceAgent.Builder newBuilderForType()
Returns
Type Description
ServiceAgent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ServiceAgent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ServiceAgent.Builder
Overrides

toBuilder()

public ServiceAgent.Builder toBuilder()
Returns
Type Description
ServiceAgent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException