Class GetProductSetRequest.Builder (2.0.29)

public static final class GetProductSetRequest.Builder extends GeneratedMessageV3.Builder<GetProductSetRequest.Builder> implements GetProductSetRequestOrBuilder

Request message for the GetProductSet method.

Protobuf type google.cloud.vision.v1.GetProductSetRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetProductSetRequest build()
Returns
TypeDescription
GetProductSetRequest

buildPartial()

public GetProductSetRequest buildPartial()
Returns
TypeDescription
GetProductSetRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetProductSetRequest.Builder clearName()

Required. Resource name of the ProductSet to get. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetProductSetRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetProductSetRequest getDefaultInstanceForType()
Returns
TypeDescription
GetProductSetRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. Resource name of the ProductSet to get. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the ProductSet to get. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetProductSetRequest other)

public GetProductSetRequest.Builder mergeFrom(GetProductSetRequest other)
Parameter
NameDescription
otherGetProductSetRequest
Returns
TypeDescription
GetProductSetRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public GetProductSetRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
GetProductSetRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetProductSetRequest.Builder setName(String value)

Required. Resource name of the ProductSet to get. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetProductSetRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetProductSetRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the ProductSet to get. Format is: projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetProductSetRequest.Builder

This builder for chaining.

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

public GetProductSetRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetProductSetRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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