Class PatchTracesRequest.Builder (2.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PatchTracesRequest build()
Returns
TypeDescription
PatchTracesRequest

buildPartial()

public PatchTracesRequest buildPartial()
Returns
TypeDescription
PatchTracesRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchTracesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PatchTracesRequest.Builder

clone()

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

getDefaultInstanceForType()

public PatchTracesRequest getDefaultInstanceForType()
Returns
TypeDescription
PatchTracesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TracesOrBuilder

hasTraces()

public boolean hasTraces()

Required. The body of the message.

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

Returns
TypeDescription
boolean

Whether the traces field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchTracesRequest other)

public PatchTracesRequest.Builder mergeFrom(PatchTracesRequest other)
Parameter
NameDescription
otherPatchTracesRequest
Returns
TypeDescription
PatchTracesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public PatchTracesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

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

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTraces
Returns
TypeDescription
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
NameDescription
builderForValueTraces.Builder
Returns
TypeDescription
PatchTracesRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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