Class GcsDestination.Builder (1.16.0)

publicstaticfinalclass GcsDestination.BuilderextendsGeneratedMessageV3.Builder<GcsDestination.Builder>implementsGcsDestinationOrBuilder

The Google Cloud Storage location where the output file will be written to.

Protobuf type google.cloud.optimization.v1.GcsDestination

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicGcsDestination.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GcsDestination.Builder
Overrides

build()

publicGcsDestinationbuild()
Returns
Type Description
GcsDestination

buildPartial()

publicGcsDestinationbuildPartial()
Returns
Type Description
GcsDestination

clear()

publicGcsDestination.Builderclear()
Returns
Type Description
GcsDestination.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicGcsDestination.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GcsDestination.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicGcsDestination.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GcsDestination.Builder
Overrides

clearUri()

publicGcsDestination.BuilderclearUri()

Required. URI of the Google Cloud Storage location.

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

Returns
Type Description
GcsDestination.Builder

This builder for chaining.

clone()

publicGcsDestination.Builderclone()
Returns
Type Description
GcsDestination.Builder
Overrides

getDefaultInstanceForType()

publicGcsDestinationgetDefaultInstanceForType()
Returns
Type Description
GcsDestination

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUri()

publicStringgetUri()

Required. URI of the Google Cloud Storage location.

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

Returns
Type Description
String

The uri.

getUriBytes()

publicByteStringgetUriBytes()

Required. URI of the Google Cloud Storage location.

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

Returns
Type Description
ByteString

The bytes for uri.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GcsDestination other)

publicGcsDestination.BuildermergeFrom(GcsDestinationother)
Parameter
Name Description
other GcsDestination
Returns
Type Description
GcsDestination.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicGcsDestination.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GcsDestination.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicGcsDestination.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
GcsDestination.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalGcsDestination.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcsDestination.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicGcsDestination.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GcsDestination.Builder
Overrides

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

publicGcsDestination.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GcsDestination.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalGcsDestination.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GcsDestination.Builder
Overrides

setUri(String value)

publicGcsDestination.BuildersetUri(Stringvalue)

Required. URI of the Google Cloud Storage location.

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

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
GcsDestination.Builder

This builder for chaining.

setUriBytes(ByteString value)

publicGcsDestination.BuildersetUriBytes(ByteStringvalue)

Required. URI of the Google Cloud Storage location.

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

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
GcsDestination.Builder

This builder for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.