Class ImportExtensionRequest.Builder (3.41.0)

public static final class ImportExtensionRequest.Builder extends GeneratedMessageV3.Builder<ImportExtensionRequest.Builder> implements ImportExtensionRequestOrBuilder

Request message for ExtensionRegistryService.ImportExtension.

Protobuf type google.cloud.aiplatform.v1beta1.ImportExtensionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportExtensionRequest build()
Returns
TypeDescription
ImportExtensionRequest

buildPartial()

public ImportExtensionRequest buildPartial()
Returns
TypeDescription
ImportExtensionRequest

clear()

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

clearExtension()

public ImportExtensionRequest.Builder clearExtension()

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ImportExtensionRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportExtensionRequest.Builder clearParent()

Required. The resource name of the Location to import the Extension in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
ImportExtensionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportExtensionRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportExtensionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExtension()

public Extension getExtension()

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Extension

The extension.

getExtensionBuilder()

public Extension.Builder getExtensionBuilder()

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Extension.Builder

getExtensionOrBuilder()

public ExtensionOrBuilder getExtensionOrBuilder()

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ExtensionOrBuilder

getParent()

public String getParent()

Required. The resource name of the Location to import the Extension in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the Location to import the Extension in. Format: projects/{project}/locations/{location}

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasExtension()

public boolean hasExtension()

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the extension field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExtension(Extension value)

public ImportExtensionRequest.Builder mergeExtension(Extension value)

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueExtension
Returns
TypeDescription
ImportExtensionRequest.Builder

mergeFrom(ImportExtensionRequest other)

public ImportExtensionRequest.Builder mergeFrom(ImportExtensionRequest other)
Parameter
NameDescription
otherImportExtensionRequest
Returns
TypeDescription
ImportExtensionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExtension(Extension value)

public ImportExtensionRequest.Builder setExtension(Extension value)

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueExtension
Returns
TypeDescription
ImportExtensionRequest.Builder

setExtension(Extension.Builder builderForValue)

public ImportExtensionRequest.Builder setExtension(Extension.Builder builderForValue)

Required. The Extension to import.

.google.cloud.aiplatform.v1beta1.Extension extension = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueExtension.Builder
Returns
TypeDescription
ImportExtensionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public ImportExtensionRequest.Builder setParent(String value)

Required. The resource name of the Location to import the Extension in. Format: projects/{project}/locations/{location}

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ImportExtensionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportExtensionRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the Location to import the Extension in. Format: projects/{project}/locations/{location}

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ImportExtensionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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