Class OperationMetadataV1.Builder (2.46.0)

public static final class OperationMetadataV1.Builder extends GeneratedMessageV3.Builder<OperationMetadataV1.Builder> implements OperationMetadataV1OrBuilder

Metadata describing an Operation

Protobuf type google.cloud.functions.v1.OperationMetadataV1

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperationMetadataV1.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperationMetadataV1.Builder
Overrides

build()

public OperationMetadataV1 build()
Returns
Type Description
OperationMetadataV1

buildPartial()

public OperationMetadataV1 buildPartial()
Returns
Type Description
OperationMetadataV1

clear()

public OperationMetadataV1.Builder clear()
Returns
Type Description
OperationMetadataV1.Builder
Overrides

clearBuildId()

public OperationMetadataV1.Builder clearBuildId()

The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

string build_id = 6;

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

clearBuildName()

public OperationMetadataV1.Builder clearBuildName()

The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

string build_name = 8;

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OperationMetadataV1.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OperationMetadataV1.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OperationMetadataV1.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OperationMetadataV1.Builder
Overrides

clearRequest()

public OperationMetadataV1.Builder clearRequest()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
Type Description
OperationMetadataV1.Builder

clearSourceToken()

public OperationMetadataV1.Builder clearSourceToken()

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

string source_token = 7;

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

clearTarget()

public OperationMetadataV1.Builder clearTarget()

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

string target = 1;

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

clearType()

public OperationMetadataV1.Builder clearType()

Type of operation.

.google.cloud.functions.v1.OperationType type = 2;

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

clearUpdateTime()

public OperationMetadataV1.Builder clearUpdateTime()

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
OperationMetadataV1.Builder

clearVersionId()

public OperationMetadataV1.Builder clearVersionId()

Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.

int64 version_id = 4;

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

clone()

public OperationMetadataV1.Builder clone()
Returns
Type Description
OperationMetadataV1.Builder
Overrides

getBuildId()

public String getBuildId()

The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

string build_id = 6;

Returns
Type Description
String

The buildId.

getBuildIdBytes()

public ByteString getBuildIdBytes()

The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

string build_id = 6;

Returns
Type Description
ByteString

The bytes for buildId.

getBuildName()

public String getBuildName()

The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

string build_name = 8;

Returns
Type Description
String

The buildName.

getBuildNameBytes()

public ByteString getBuildNameBytes()

The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

string build_name = 8;

Returns
Type Description
ByteString

The bytes for buildName.

getDefaultInstanceForType()

public OperationMetadataV1 getDefaultInstanceForType()
Returns
Type Description
OperationMetadataV1

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRequest()

public Any getRequest()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
Type Description
Any

The request.

getRequestBuilder()

public Any.Builder getRequestBuilder()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
Type Description
Builder

getRequestOrBuilder()

public AnyOrBuilder getRequestOrBuilder()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
Type Description
AnyOrBuilder

getSourceToken()

public String getSourceToken()

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

string source_token = 7;

Returns
Type Description
String

The sourceToken.

getSourceTokenBytes()

public ByteString getSourceTokenBytes()

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

string source_token = 7;

Returns
Type Description
ByteString

The bytes for sourceToken.

getTarget()

public String getTarget()

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

string target = 1;

Returns
Type Description
String

The target.

getTargetBytes()

public ByteString getTargetBytes()

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

string target = 1;

Returns
Type Description
ByteString

The bytes for target.

getType()

public OperationType getType()

Type of operation.

.google.cloud.functions.v1.OperationType type = 2;

Returns
Type Description
OperationType

The type.

getTypeValue()

public int getTypeValue()

Type of operation.

.google.cloud.functions.v1.OperationType type = 2;

Returns
Type Description
int

The enum numeric value on the wire for type.

getUpdateTime()

public Timestamp getUpdateTime()

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
TimestampOrBuilder

getVersionId()

public long getVersionId()

Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.

int64 version_id = 4;

Returns
Type Description
long

The versionId.

hasRequest()

public boolean hasRequest()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
Type Description
boolean

Whether the request field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperationMetadataV1 other)

public OperationMetadataV1.Builder mergeFrom(OperationMetadataV1 other)
Parameter
Name Description
other OperationMetadataV1
Returns
Type Description
OperationMetadataV1.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OperationMetadataV1.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OperationMetadataV1.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OperationMetadataV1.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OperationMetadataV1.Builder
Overrides

mergeRequest(Any value)

public OperationMetadataV1.Builder mergeRequest(Any value)

The original request that started the operation.

.google.protobuf.Any request = 3;

Parameter
Name Description
value Any
Returns
Type Description
OperationMetadataV1.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationMetadataV1.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OperationMetadataV1.Builder
Overrides

mergeUpdateTime(Timestamp value)

public OperationMetadataV1.Builder mergeUpdateTime(Timestamp value)

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
OperationMetadataV1.Builder

setBuildId(String value)

public OperationMetadataV1.Builder setBuildId(String value)

The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

string build_id = 6;

Parameter
Name Description
value String

The buildId to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setBuildIdBytes(ByteString value)

public OperationMetadataV1.Builder setBuildIdBytes(ByteString value)

The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.

string build_id = 6;

Parameter
Name Description
value ByteString

The bytes for buildId to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setBuildName(String value)

public OperationMetadataV1.Builder setBuildName(String value)

The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

string build_name = 8;

Parameter
Name Description
value String

The buildName to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setBuildNameBytes(ByteString value)

public OperationMetadataV1.Builder setBuildNameBytes(ByteString value)

The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. projects/<project-number>/locations/<region>/builds/<build-id>.

string build_name = 8;

Parameter
Name Description
value ByteString

The bytes for buildName to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OperationMetadataV1.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperationMetadataV1.Builder
Overrides

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

public OperationMetadataV1.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OperationMetadataV1.Builder
Overrides

setRequest(Any value)

public OperationMetadataV1.Builder setRequest(Any value)

The original request that started the operation.

.google.protobuf.Any request = 3;

Parameter
Name Description
value Any
Returns
Type Description
OperationMetadataV1.Builder

setRequest(Any.Builder builderForValue)

public OperationMetadataV1.Builder setRequest(Any.Builder builderForValue)

The original request that started the operation.

.google.protobuf.Any request = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OperationMetadataV1.Builder

setSourceToken(String value)

public OperationMetadataV1.Builder setSourceToken(String value)

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

string source_token = 7;

Parameter
Name Description
value String

The sourceToken to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setSourceTokenBytes(ByteString value)

public OperationMetadataV1.Builder setSourceTokenBytes(ByteString value)

An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.

string source_token = 7;

Parameter
Name Description
value ByteString

The bytes for sourceToken to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setTarget(String value)

public OperationMetadataV1.Builder setTarget(String value)

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

string target = 1;

Parameter
Name Description
value String

The target to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setTargetBytes(ByteString value)

public OperationMetadataV1.Builder setTargetBytes(ByteString value)

Target of the operation - for example projects/project-1/locations/region-1/functions/function-1

string target = 1;

Parameter
Name Description
value ByteString

The bytes for target to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setType(OperationType value)

public OperationMetadataV1.Builder setType(OperationType value)

Type of operation.

.google.cloud.functions.v1.OperationType type = 2;

Parameter
Name Description
value OperationType

The type to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setTypeValue(int value)

public OperationMetadataV1.Builder setTypeValue(int value)

Type of operation.

.google.cloud.functions.v1.OperationType type = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OperationMetadataV1.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OperationMetadataV1.Builder
Overrides

setUpdateTime(Timestamp value)

public OperationMetadataV1.Builder setUpdateTime(Timestamp value)

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
OperationMetadataV1.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public OperationMetadataV1.Builder setUpdateTime(Timestamp.Builder builderForValue)

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
OperationMetadataV1.Builder

setVersionId(long value)

public OperationMetadataV1.Builder setVersionId(long value)

Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.

int64 version_id = 4;

Parameter
Name Description
value long

The versionId to set.

Returns
Type Description
OperationMetadataV1.Builder

This builder for chaining.