Class OperationMetadataV1.Builder (2.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public OperationMetadataV1 build()
Returns
TypeDescription
OperationMetadataV1

buildPartial()

public OperationMetadataV1 buildPartial()
Returns
TypeDescription
OperationMetadataV1

clear()

public OperationMetadataV1.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OperationMetadataV1.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRequest()

public OperationMetadataV1.Builder clearRequest()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OperationMetadataV1.Builder

This builder for chaining.

clearType()

public OperationMetadataV1.Builder clearType()

Type of operation.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
OperationMetadataV1.Builder

This builder for chaining.

clone()

public OperationMetadataV1.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for buildName.

getDefaultInstanceForType()

public OperationMetadataV1 getDefaultInstanceForType()
Returns
TypeDescription
OperationMetadataV1

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getRequest()

public Any getRequest()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
TypeDescription
Any

The request.

getRequestBuilder()

public Any.Builder getRequestBuilder()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
TypeDescription
Builder

getRequestOrBuilder()

public AnyOrBuilder getRequestOrBuilder()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for target.

getType()

public OperationType getType()

Type of operation.

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

Returns
TypeDescription
OperationType

The type.

getTypeValue()

public int getTypeValue()

Type of operation.

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

Returns
TypeDescription
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
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The last update timestamp of the operation.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
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
TypeDescription
long

The versionId.

hasRequest()

public boolean hasRequest()

The original request that started the operation.

.google.protobuf.Any request = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OperationMetadataV1 other)

public OperationMetadataV1.Builder mergeFrom(OperationMetadataV1 other)
Parameter
NameDescription
otherOperationMetadataV1
Returns
TypeDescription
OperationMetadataV1.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public OperationMetadataV1.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAny
Returns
TypeDescription
OperationMetadataV1.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationMetadataV1.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueString

The buildId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for buildId to set.

Returns
TypeDescription
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
NameDescription
valueString

The buildName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for buildName to set.

Returns
TypeDescription
OperationMetadataV1.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public OperationMetadataV1.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueAny
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The sourceToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sourceToken to set.

Returns
TypeDescription
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
NameDescription
valueString

The target to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for target to set.

Returns
TypeDescription
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
NameDescription
valueOperationType

The type to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
OperationMetadataV1.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OperationMetadataV1.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valuelong

The versionId to set.

Returns
TypeDescription
OperationMetadataV1.Builder

This builder for chaining.