Class PublisherModel.Parent.Builder (3.31.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PublisherModel.Parent build()
Returns
TypeDescription
PublisherModel.Parent

buildPartial()

public PublisherModel.Parent buildPartial()
Returns
TypeDescription
PublisherModel.Parent

clear()

public PublisherModel.Parent.Builder clear()
Returns
TypeDescription
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
TypeDescription
PublisherModel.Parent.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public PublisherModel.Parent.Builder clone()
Returns
TypeDescription
PublisherModel.Parent.Builder
Overrides

getDefaultInstanceForType()

public PublisherModel.Parent getDefaultInstanceForType()
Returns
TypeDescription
PublisherModel.Parent

getDescriptorForType()

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

Whether the reference field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublisherModel.Parent other)

public PublisherModel.Parent.Builder mergeFrom(PublisherModel.Parent other)
Parameter
NameDescription
otherPublisherModel.Parent
Returns
TypeDescription
PublisherModel.Parent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public PublisherModel.Parent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePublisherModel.ResourceReference
Returns
TypeDescription
PublisherModel.Parent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.Parent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

Returns
TypeDescription
PublisherModel.Parent.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.Parent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePublisherModel.ResourceReference
Returns
TypeDescription
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
NameDescription
builderForValuePublisherModel.ResourceReference.Builder
Returns
TypeDescription
PublisherModel.Parent.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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