Class CreateFeatureRequest.Builder (1.4.0)

public static final class CreateFeatureRequest.Builder extends GeneratedMessageV3.Builder<CreateFeatureRequest.Builder> implements CreateFeatureRequestOrBuilder

Request message for the GkeHub.CreateFeature method.

Protobuf type google.cloud.gkehub.v1.CreateFeatureRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFeatureRequest build()
Returns
TypeDescription
CreateFeatureRequest

buildPartial()

public CreateFeatureRequest buildPartial()
Returns
TypeDescription
CreateFeatureRequest

clear()

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

clearFeatureId()

public CreateFeatureRequest.Builder clearFeatureId()

The ID of the feature to create.

string feature_id = 2;

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateFeatureRequest.Builder clearParent()

Required. The parent (project and location) where the Feature will be created. Specified in the format projects/*/locations/*.

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

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

clearRequestId()

public CreateFeatureRequest.Builder clearRequestId()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

clearResource()

public CreateFeatureRequest.Builder clearResource()

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Returns
TypeDescription
CreateFeatureRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateFeatureRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateFeatureRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFeatureId()

public String getFeatureId()

The ID of the feature to create.

string feature_id = 2;

Returns
TypeDescription
String

The featureId.

getFeatureIdBytes()

public ByteString getFeatureIdBytes()

The ID of the feature to create.

string feature_id = 2;

Returns
TypeDescription
ByteString

The bytes for featureId.

getParent()

public String getParent()

Required. The parent (project and location) where the Feature will be created. Specified in the format projects/*/locations/*.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent (project and location) where the Feature will be created. Specified in the format projects/*/locations/*.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
TypeDescription
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Returns
TypeDescription
ByteString

The bytes for requestId.

getResource()

public Feature getResource()

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Returns
TypeDescription
Feature

The resource.

getResourceBuilder()

public Feature.Builder getResourceBuilder()

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Returns
TypeDescription
Feature.Builder

getResourceOrBuilder()

public FeatureOrBuilder getResourceOrBuilder()

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Returns
TypeDescription
FeatureOrBuilder

hasResource()

public boolean hasResource()

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Returns
TypeDescription
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateFeatureRequest other)

public CreateFeatureRequest.Builder mergeFrom(CreateFeatureRequest other)
Parameter
NameDescription
otherCreateFeatureRequest
Returns
TypeDescription
CreateFeatureRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResource(Feature value)

public CreateFeatureRequest.Builder mergeResource(Feature value)

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Parameter
NameDescription
valueFeature
Returns
TypeDescription
CreateFeatureRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFeatureId(String value)

public CreateFeatureRequest.Builder setFeatureId(String value)

The ID of the feature to create.

string feature_id = 2;

Parameter
NameDescription
valueString

The featureId to set.

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

setFeatureIdBytes(ByteString value)

public CreateFeatureRequest.Builder setFeatureIdBytes(ByteString value)

The ID of the feature to create.

string feature_id = 2;

Parameter
NameDescription
valueByteString

The bytes for featureId to set.

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateFeatureRequest.Builder setParent(String value)

Required. The parent (project and location) where the Feature will be created. Specified in the format projects/*/locations/*.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateFeatureRequest.Builder setParentBytes(ByteString value)

Required. The parent (project and location) where the Feature will be created. Specified in the format projects/*/locations/*.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateFeatureRequest.Builder setRequestId(String value)

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Parameter
NameDescription
valueString

The requestId to set.

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateFeatureRequest.Builder setRequestIdBytes(ByteString value)

Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4;

Parameter
NameDescription
valueByteString

The bytes for requestId to set.

Returns
TypeDescription
CreateFeatureRequest.Builder

This builder for chaining.

setResource(Feature value)

public CreateFeatureRequest.Builder setResource(Feature value)

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Parameter
NameDescription
valueFeature
Returns
TypeDescription
CreateFeatureRequest.Builder

setResource(Feature.Builder builderForValue)

public CreateFeatureRequest.Builder setResource(Feature.Builder builderForValue)

The Feature resource to create.

.google.cloud.gkehub.v1.Feature resource = 3;

Parameter
NameDescription
builderForValueFeature.Builder
Returns
TypeDescription
CreateFeatureRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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