Class PatchTracesRequest.Builder (2.49.0)

public static final class PatchTracesRequest.Builder extends GeneratedMessageV3.Builder<PatchTracesRequest.Builder> implements PatchTracesRequestOrBuilder

The request message for the PatchTraces method.

Protobuf type google.devtools.cloudtrace.v1.PatchTracesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchTracesRequest build()
Returns
Type Description
PatchTracesRequest

buildPartial()

public PatchTracesRequest buildPartial()
Returns
Type Description
PatchTracesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProjectId()

public PatchTracesRequest.Builder clearProjectId()

Required. ID of the Cloud project where the trace data is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PatchTracesRequest.Builder

This builder for chaining.

clearTraces()

public PatchTracesRequest.Builder clearTraces()

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PatchTracesRequest.Builder

clone()

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

getDefaultInstanceForType()

public PatchTracesRequest getDefaultInstanceForType()
Returns
Type Description
PatchTracesRequest

getDescriptorForType()

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

getProjectId()

public String getProjectId()

Required. ID of the Cloud project where the trace data is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. ID of the Cloud project where the trace data is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getTraces()

public Traces getTraces()

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Traces

The traces.

getTracesBuilder()

public Traces.Builder getTracesBuilder()

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Traces.Builder

getTracesOrBuilder()

public TracesOrBuilder getTracesOrBuilder()

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TracesOrBuilder

hasTraces()

public boolean hasTraces()

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the traces field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PatchTracesRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTraces(Traces value)

public PatchTracesRequest.Builder mergeTraces(Traces value)

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Traces
Returns
Type Description
PatchTracesRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProjectId(String value)

public PatchTracesRequest.Builder setProjectId(String value)

Required. ID of the Cloud project where the trace data is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
PatchTracesRequest.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public PatchTracesRequest.Builder setProjectIdBytes(ByteString value)

Required. ID of the Cloud project where the trace data is stored.

string project_id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
PatchTracesRequest.Builder

This builder for chaining.

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

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

setTraces(Traces value)

public PatchTracesRequest.Builder setTraces(Traces value)

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Traces
Returns
Type Description
PatchTracesRequest.Builder

setTraces(Traces.Builder builderForValue)

public PatchTracesRequest.Builder setTraces(Traces.Builder builderForValue)

Required. The body of the message.

.google.devtools.cloudtrace.v1.Traces traces = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Traces.Builder
Returns
Type Description
PatchTracesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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