Class GetPublisherModelRequest.Builder (3.34.0)

public static final class GetPublisherModelRequest.Builder extends GeneratedMessageV3.Builder<GetPublisherModelRequest.Builder> implements GetPublisherModelRequestOrBuilder

Request message for ModelGardenService.GetPublisherModel

Protobuf type google.cloud.aiplatform.v1beta1.GetPublisherModelRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetPublisherModelRequest build()
Returns
TypeDescription
GetPublisherModelRequest

buildPartial()

public GetPublisherModelRequest buildPartial()
Returns
TypeDescription
GetPublisherModelRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLanguageCode()

public GetPublisherModelRequest.Builder clearLanguageCode()

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in (see go/bcp47).

string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

clearName()

public GetPublisherModelRequest.Builder clearName()

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}

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

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearView()

public GetPublisherModelRequest.Builder clearView()

Optional. PublisherModel view specifying which fields to read.

.google.cloud.aiplatform.v1beta1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetPublisherModelRequest getDefaultInstanceForType()
Returns
TypeDescription
GetPublisherModelRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLanguageCode()

public String getLanguageCode()

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in (see go/bcp47).

string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in (see go/bcp47).

string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for languageCode.

getName()

public String getName()

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}

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

Returns
TypeDescription
ByteString

The bytes for name.

getView()

public PublisherModelView getView()

Optional. PublisherModel view specifying which fields to read.

.google.cloud.aiplatform.v1beta1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModelView

The view.

getViewValue()

public int getViewValue()

Optional. PublisherModel view specifying which fields to read.

.google.cloud.aiplatform.v1beta1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for view.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetPublisherModelRequest other)

public GetPublisherModelRequest.Builder mergeFrom(GetPublisherModelRequest other)
Parameter
NameDescription
otherGetPublisherModelRequest
Returns
TypeDescription
GetPublisherModelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLanguageCode(String value)

public GetPublisherModelRequest.Builder setLanguageCode(String value)

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in (see go/bcp47).

string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public GetPublisherModelRequest.Builder setLanguageCodeBytes(ByteString value)

Optional. The IETF BCP-47 language code representing the language in which the publisher model's text information should be written in (see go/bcp47).

string language_code = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

setName(String value)

public GetPublisherModelRequest.Builder setName(String value)

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetPublisherModelRequest.Builder setNameBytes(ByteString value)

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setView(PublisherModelView value)

public GetPublisherModelRequest.Builder setView(PublisherModelView value)

Optional. PublisherModel view specifying which fields to read.

.google.cloud.aiplatform.v1beta1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuePublisherModelView

The view to set.

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.

setViewValue(int value)

public GetPublisherModelRequest.Builder setViewValue(int value)

Optional. PublisherModel view specifying which fields to read.

.google.cloud.aiplatform.v1beta1.PublisherModelView view = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
GetPublisherModelRequest.Builder

This builder for chaining.