Class PreviewApplicationRequest (0.3.0)

public final class PreviewApplicationRequest extends GeneratedMessage implements PreviewApplicationRequestOrBuilder

Message for previewing an application.

Protobuf type google.cloud.designcenter.v1.PreviewApplicationRequest

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

SERVICE_ACCOUNT_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
Type Description
int

WORKER_POOL_FIELD_NUMBER

public static final int WORKER_POOL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PreviewApplicationRequest getDefaultInstance()
Returns
Type Description
PreviewApplicationRequest

getDescriptor()

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

newBuilder()

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

newBuilder(PreviewApplicationRequest prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PreviewApplicationRequest getDefaultInstanceForType()
Returns
Type Description
PreviewApplicationRequest

getName()

public String getName()

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The application name in the following format: projects/$project/locations/$location/spaces/$space/applications/$application

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getServiceAccount()

public String getServiceAccount()

Optional. The email address of the service account to use for this preview operation.

  • If provided, this service account will be used to execute the preview process, taking precedence over any service_account specified on the Application resource.
  • The caller must have the 'iam.serviceAccounts.actAs' permission on this service account.
  • If this field is omitted, the system will use the 'service_account' defined within the Application resource.
  • We recommend that you provide a service account here or on the Application resource. If you don't provide a service account, the preview will fail. Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}

string service_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. The email address of the service account to use for this preview operation.

  • If provided, this service account will be used to execute the preview process, taking precedence over any service_account specified on the Application resource.
  • The caller must have the 'iam.serviceAccounts.actAs' permission on this service account.
  • If this field is omitted, the system will use the 'service_account' defined within the Application resource.
  • We recommend that you provide a service account here or on the Application resource. If you don't provide a service account, the preview will fail. Format: projects/{PROJECT}/serviceAccounts/{EMAIL_ADDRESS}

string service_account = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serviceAccount.

getWorkerPool()

public String getWorkerPool()

Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId} If this flag is omitted, the worker pool already defined on the application will be used. If no worker pool is defined on the application, the default Cloud Build worker pool is used. The worker pool must exist in the same region as the application.

string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The workerPool.

getWorkerPoolBytes()

public ByteString getWorkerPoolBytes()

Optional. The user-specified Worker Pool resource in which the Cloud Build job will execute. Format: projects/{project}/locations/{location}/workerPools/{workerPoolId} If this flag is omitted, the worker pool already defined on the application will be used. If no worker pool is defined on the application, the default Cloud Build worker pool is used. The worker pool must exist in the same region as the application.

string worker_pool = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for workerPool.

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 PreviewApplicationRequest.Builder newBuilderForType()
Returns
Type Description
PreviewApplicationRequest.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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