Class CreateEndpointPolicyRequest.Builder (0.10.0)

public static final class CreateEndpointPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateEndpointPolicyRequest.Builder> implements CreateEndpointPolicyRequestOrBuilder

Request used with the CreateEndpointPolicy method.

Protobuf type google.cloud.networkservices.v1.CreateEndpointPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateEndpointPolicyRequest build()
Returns
Type Description
CreateEndpointPolicyRequest

buildPartial()

public CreateEndpointPolicyRequest buildPartial()
Returns
Type Description
CreateEndpointPolicyRequest

clear()

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

clearEndpointPolicy()

public CreateEndpointPolicyRequest.Builder clearEndpointPolicy()

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateEndpointPolicyRequest.Builder

clearEndpointPolicyId()

public CreateEndpointPolicyRequest.Builder clearEndpointPolicyId()

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

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

Returns
Type Description
CreateEndpointPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateEndpointPolicyRequest.Builder clearParent()

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

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

Returns
Type Description
CreateEndpointPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateEndpointPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateEndpointPolicyRequest

getDescriptorForType()

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

getEndpointPolicy()

public EndpointPolicy getEndpointPolicy()

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EndpointPolicy

The endpointPolicy.

getEndpointPolicyBuilder()

public EndpointPolicy.Builder getEndpointPolicyBuilder()

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EndpointPolicy.Builder

getEndpointPolicyId()

public String getEndpointPolicyId()

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

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

Returns
Type Description
String

The endpointPolicyId.

getEndpointPolicyIdBytes()

public ByteString getEndpointPolicyIdBytes()

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

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

Returns
Type Description
ByteString

The bytes for endpointPolicyId.

getEndpointPolicyOrBuilder()

public EndpointPolicyOrBuilder getEndpointPolicyOrBuilder()

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EndpointPolicyOrBuilder

getParent()

public String getParent()

Required. The parent resource of the EndpointPolicy. 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 EndpointPolicy. 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.

hasEndpointPolicy()

public boolean hasEndpointPolicy()

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endpointPolicy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndpointPolicy(EndpointPolicy value)

public CreateEndpointPolicyRequest.Builder mergeEndpointPolicy(EndpointPolicy value)

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EndpointPolicy
Returns
Type Description
CreateEndpointPolicyRequest.Builder

mergeFrom(CreateEndpointPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndpointPolicy(EndpointPolicy value)

public CreateEndpointPolicyRequest.Builder setEndpointPolicy(EndpointPolicy value)

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EndpointPolicy
Returns
Type Description
CreateEndpointPolicyRequest.Builder

setEndpointPolicy(EndpointPolicy.Builder builderForValue)

public CreateEndpointPolicyRequest.Builder setEndpointPolicy(EndpointPolicy.Builder builderForValue)

Required. EndpointPolicy resource to be created.

.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue EndpointPolicy.Builder
Returns
Type Description
CreateEndpointPolicyRequest.Builder

setEndpointPolicyId(String value)

public CreateEndpointPolicyRequest.Builder setEndpointPolicyId(String value)

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

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

Parameter
Name Description
value String

The endpointPolicyId to set.

Returns
Type Description
CreateEndpointPolicyRequest.Builder

This builder for chaining.

setEndpointPolicyIdBytes(ByteString value)

public CreateEndpointPolicyRequest.Builder setEndpointPolicyIdBytes(ByteString value)

Required. Short name of the EndpointPolicy resource to be created. E.g. "CustomECS".

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

Parameter
Name Description
value ByteString

The bytes for endpointPolicyId to set.

Returns
Type Description
CreateEndpointPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateEndpointPolicyRequest.Builder setParent(String value)

Required. The parent resource of the EndpointPolicy. 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
CreateEndpointPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateEndpointPolicyRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the EndpointPolicy. 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
CreateEndpointPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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