Class PublisherModel.Parent.Builder (3.49.0)

public static final class PublisherModel.Parent.Builder extends GeneratedMessageV3.Builder<PublisherModel.Parent.Builder> implements PublisherModel.ParentOrBuilder

The information about the parent of a model.

Protobuf type google.cloud.aiplatform.v1beta1.PublisherModel.Parent

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PublisherModel.Parent build()
Returns
Type Description
PublisherModel.Parent

buildPartial()

public PublisherModel.Parent buildPartial()
Returns
Type Description
PublisherModel.Parent

clear()

public PublisherModel.Parent.Builder clear()
Returns
Type Description
PublisherModel.Parent.Builder
Overrides

clearDisplayName()

public PublisherModel.Parent.Builder clearDisplayName()

Required. The display name of the parent. E.g., LaMDA, T5, Vision API, Natural Language API.

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

Returns
Type Description
PublisherModel.Parent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReference()

public PublisherModel.Parent.Builder clearReference()

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PublisherModel.Parent.Builder

clone()

public PublisherModel.Parent.Builder clone()
Returns
Type Description
PublisherModel.Parent.Builder
Overrides

getDefaultInstanceForType()

public PublisherModel.Parent getDefaultInstanceForType()
Returns
Type Description
PublisherModel.Parent

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Required. The display name of the parent. E.g., LaMDA, T5, Vision API, Natural Language API.

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

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The display name of the parent. E.g., LaMDA, T5, Vision API, Natural Language API.

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

Returns
Type Description
ByteString

The bytes for displayName.

getReference()

public PublisherModel.ResourceReference getReference()

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PublisherModel.ResourceReference

The reference.

getReferenceBuilder()

public PublisherModel.ResourceReference.Builder getReferenceBuilder()

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PublisherModel.ResourceReference.Builder

getReferenceOrBuilder()

public PublisherModel.ResourceReferenceOrBuilder getReferenceOrBuilder()

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PublisherModel.ResourceReferenceOrBuilder

hasReference()

public boolean hasReference()

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the reference field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PublisherModel.Parent other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeReference(PublisherModel.ResourceReference value)

public PublisherModel.Parent.Builder mergeReference(PublisherModel.ResourceReference value)

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PublisherModel.ResourceReference
Returns
Type Description
PublisherModel.Parent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public PublisherModel.Parent.Builder setDisplayName(String value)

Required. The display name of the parent. E.g., LaMDA, T5, Vision API, Natural Language API.

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
PublisherModel.Parent.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public PublisherModel.Parent.Builder setDisplayNameBytes(ByteString value)

Required. The display name of the parent. E.g., LaMDA, T5, Vision API, Natural Language API.

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
PublisherModel.Parent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setReference(PublisherModel.ResourceReference value)

public PublisherModel.Parent.Builder setReference(PublisherModel.ResourceReference value)

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value PublisherModel.ResourceReference
Returns
Type Description
PublisherModel.Parent.Builder

setReference(PublisherModel.ResourceReference.Builder builderForValue)

public PublisherModel.Parent.Builder setReference(PublisherModel.ResourceReference.Builder builderForValue)

Optional. The Google Cloud resource name or the URI reference.

.google.cloud.aiplatform.v1beta1.PublisherModel.ResourceReference reference = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue PublisherModel.ResourceReference.Builder
Returns
Type Description
PublisherModel.Parent.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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