Class UpdateEndpointPolicyRequest.Builder (0.4.0)

public static final class UpdateEndpointPolicyRequest.Builder extends GeneratedMessageV3.Builder<UpdateEndpointPolicyRequest.Builder> implements UpdateEndpointPolicyRequestOrBuilder

Request used with the UpdateEndpointPolicy method.

Protobuf type google.cloud.networkservices.v1.UpdateEndpointPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateEndpointPolicyRequest build()
Returns
Type Description
UpdateEndpointPolicyRequest

buildPartial()

public UpdateEndpointPolicyRequest buildPartial()
Returns
Type Description
UpdateEndpointPolicyRequest

clear()

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

clearEndpointPolicy()

public UpdateEndpointPolicyRequest.Builder clearEndpointPolicy()

Required. Updated EndpointPolicy resource.

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

Returns
Type Description
UpdateEndpointPolicyRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateEndpointPolicyRequest.Builder clearUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateEndpointPolicyRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateEndpointPolicyRequest getDefaultInstanceForType()
Returns
Type Description
UpdateEndpointPolicyRequest

getDescriptorForType()

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

getEndpointPolicy()

public EndpointPolicy getEndpointPolicy()

Required. Updated EndpointPolicy resource.

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

Returns
Type Description
EndpointPolicy

The endpointPolicy.

getEndpointPolicyBuilder()

public EndpointPolicy.Builder getEndpointPolicyBuilder()

Required. Updated EndpointPolicy resource.

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

Returns
Type Description
EndpointPolicy.Builder

getEndpointPolicyOrBuilder()

public EndpointPolicyOrBuilder getEndpointPolicyOrBuilder()

Required. Updated EndpointPolicy resource.

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

Returns
Type Description
EndpointPolicyOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasEndpointPolicy()

public boolean hasEndpointPolicy()

Required. Updated EndpointPolicy resource.

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

Returns
Type Description
boolean

Whether the endpointPolicy field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask 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 UpdateEndpointPolicyRequest.Builder mergeEndpointPolicy(EndpointPolicy value)

Required. Updated EndpointPolicy resource.

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

Parameter
Name Description
value EndpointPolicy
Returns
Type Description
UpdateEndpointPolicyRequest.Builder

mergeFrom(UpdateEndpointPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateEndpointPolicyRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateEndpointPolicyRequest.Builder

setEndpointPolicy(EndpointPolicy value)

public UpdateEndpointPolicyRequest.Builder setEndpointPolicy(EndpointPolicy value)

Required. Updated EndpointPolicy resource.

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

Parameter
Name Description
value EndpointPolicy
Returns
Type Description
UpdateEndpointPolicyRequest.Builder

setEndpointPolicy(EndpointPolicy.Builder builderForValue)

public UpdateEndpointPolicyRequest.Builder setEndpointPolicy(EndpointPolicy.Builder builderForValue)

Required. Updated EndpointPolicy resource.

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

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateEndpointPolicyRequest.Builder setUpdateMask(FieldMask value)

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateEndpointPolicyRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateEndpointPolicyRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Field mask is used to specify the fields to be overwritten in the EndpointPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateEndpointPolicyRequest.Builder