Class DefaultPool.Builder (1.15.0)

public static final class DefaultPool.Builder extends GeneratedMessageV3.Builder<DefaultPool.Builder> implements DefaultPoolOrBuilder

Execution using the default Cloud Build pool.

Protobuf type google.cloud.deploy.v1.DefaultPool

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DefaultPool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DefaultPool.Builder
Overrides

build()

public DefaultPool build()
Returns
TypeDescription
DefaultPool

buildPartial()

public DefaultPool buildPartial()
Returns
TypeDescription
DefaultPool

clear()

public DefaultPool.Builder clear()
Returns
TypeDescription
DefaultPool.Builder
Overrides

clearArtifactStorage()

public DefaultPool.Builder clearArtifactStorage()

Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.

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

Returns
TypeDescription
DefaultPool.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DefaultPool.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DefaultPool.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DefaultPool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DefaultPool.Builder
Overrides

clearServiceAccount()

public DefaultPool.Builder clearServiceAccount()

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.

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

Returns
TypeDescription
DefaultPool.Builder

This builder for chaining.

clone()

public DefaultPool.Builder clone()
Returns
TypeDescription
DefaultPool.Builder
Overrides

getArtifactStorage()

public String getArtifactStorage()

Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.

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

Returns
TypeDescription
String

The artifactStorage.

getArtifactStorageBytes()

public ByteString getArtifactStorageBytes()

Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.

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

Returns
TypeDescription
ByteString

The bytes for artifactStorage.

getDefaultInstanceForType()

public DefaultPool getDefaultInstanceForType()
Returns
TypeDescription
DefaultPool

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getServiceAccount()

public String getServiceAccount()

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.

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

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.

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

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DefaultPool other)

public DefaultPool.Builder mergeFrom(DefaultPool other)
Parameter
NameDescription
otherDefaultPool
Returns
TypeDescription
DefaultPool.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DefaultPool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DefaultPool.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DefaultPool.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DefaultPool.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DefaultPool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DefaultPool.Builder
Overrides

setArtifactStorage(String value)

public DefaultPool.Builder setArtifactStorage(String value)

Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.

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

Parameter
NameDescription
valueString

The artifactStorage to set.

Returns
TypeDescription
DefaultPool.Builder

This builder for chaining.

setArtifactStorageBytes(ByteString value)

public DefaultPool.Builder setArtifactStorageBytes(ByteString value)

Optional. Cloud Storage location where execution outputs should be stored. This can either be a bucket ("gs://my-bucket") or a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a default bucket located in the same region will be used.

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

Parameter
NameDescription
valueByteString

The bytes for artifactStorage to set.

Returns
TypeDescription
DefaultPool.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DefaultPool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DefaultPool.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DefaultPool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DefaultPool.Builder
Overrides

setServiceAccount(String value)

public DefaultPool.Builder setServiceAccount(String value)

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.

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

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
DefaultPool.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public DefaultPool.Builder setServiceAccountBytes(ByteString value)

Optional. Google service account to use for execution. If unspecified, the project execution service account (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.

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

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
DefaultPool.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DefaultPool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DefaultPool.Builder
Overrides