Class CreateHttpRouteRequest.Builder (0.4.0)

public static final class CreateHttpRouteRequest.Builder extends GeneratedMessageV3.Builder<CreateHttpRouteRequest.Builder> implements CreateHttpRouteRequestOrBuilder

Request used by the HttpRoute method.

Protobuf type google.cloud.networkservices.v1.CreateHttpRouteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateHttpRouteRequest build()
Returns
Type Description
CreateHttpRouteRequest

buildPartial()

public CreateHttpRouteRequest buildPartial()
Returns
Type Description
CreateHttpRouteRequest

clear()

public CreateHttpRouteRequest.Builder clear()
Returns
Type Description
CreateHttpRouteRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearHttpRoute()

public CreateHttpRouteRequest.Builder clearHttpRoute()

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateHttpRouteRequest.Builder

clearHttpRouteId()

public CreateHttpRouteRequest.Builder clearHttpRouteId()

Required. Short name of the HttpRoute resource to be created.

string http_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateHttpRouteRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateHttpRouteRequest.Builder clearParent()

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
CreateHttpRouteRequest.Builder

This builder for chaining.

clone()

public CreateHttpRouteRequest.Builder clone()
Returns
Type Description
CreateHttpRouteRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateHttpRouteRequest getDefaultInstanceForType()
Returns
Type Description
CreateHttpRouteRequest

getDescriptorForType()

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

getHttpRoute()

public HttpRoute getHttpRoute()

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HttpRoute

The httpRoute.

getHttpRouteBuilder()

public HttpRoute.Builder getHttpRouteBuilder()

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HttpRoute.Builder

getHttpRouteId()

public String getHttpRouteId()

Required. Short name of the HttpRoute resource to be created.

string http_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The httpRouteId.

getHttpRouteIdBytes()

public ByteString getHttpRouteIdBytes()

Required. Short name of the HttpRoute resource to be created.

string http_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for httpRouteId.

getHttpRouteOrBuilder()

public HttpRouteOrBuilder getHttpRouteOrBuilder()

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HttpRouteOrBuilder

getParent()

public String getParent()

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

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

Returns
Type Description
ByteString

The bytes for parent.

hasHttpRoute()

public boolean hasHttpRoute()

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the httpRoute field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateHttpRouteRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHttpRoute(HttpRoute value)

public CreateHttpRouteRequest.Builder mergeHttpRoute(HttpRoute value)

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HttpRoute
Returns
Type Description
CreateHttpRouteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHttpRoute(HttpRoute value)

public CreateHttpRouteRequest.Builder setHttpRoute(HttpRoute value)

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value HttpRoute
Returns
Type Description
CreateHttpRouteRequest.Builder

setHttpRoute(HttpRoute.Builder builderForValue)

public CreateHttpRouteRequest.Builder setHttpRoute(HttpRoute.Builder builderForValue)

Required. HttpRoute resource to be created.

.google.cloud.networkservices.v1.HttpRoute http_route = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue HttpRoute.Builder
Returns
Type Description
CreateHttpRouteRequest.Builder

setHttpRouteId(String value)

public CreateHttpRouteRequest.Builder setHttpRouteId(String value)

Required. Short name of the HttpRoute resource to be created.

string http_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The httpRouteId to set.

Returns
Type Description
CreateHttpRouteRequest.Builder

This builder for chaining.

setHttpRouteIdBytes(ByteString value)

public CreateHttpRouteRequest.Builder setHttpRouteIdBytes(ByteString value)

Required. Short name of the HttpRoute resource to be created.

string http_route_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for httpRouteId to set.

Returns
Type Description
CreateHttpRouteRequest.Builder

This builder for chaining.

setParent(String value)

public CreateHttpRouteRequest.Builder setParent(String value)

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateHttpRouteRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateHttpRouteRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the HttpRoute. Must be in the format projects/*/locations/global.

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateHttpRouteRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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