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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateEndpointPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateEndpointPolicyRequest build()
buildPartial()
public CreateEndpointPolicyRequest buildPartial()
clear()
public CreateEndpointPolicyRequest.Builder clear()
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];
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];
clearField(Descriptors.FieldDescriptor field)
public CreateEndpointPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateEndpointPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateEndpointPolicyRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateEndpointPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEndpointPolicy()
public EndpointPolicy getEndpointPolicy()
Required. EndpointPolicy resource to be created.
.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];
getEndpointPolicyBuilder()
public EndpointPolicy.Builder getEndpointPolicyBuilder()
Required. EndpointPolicy resource to be created.
.google.cloud.networkservices.v1.EndpointPolicy endpoint_policy = 3 [(.google.api.field_behavior) = REQUIRED];
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];
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(CreateEndpointPolicyRequest other)
public CreateEndpointPolicyRequest.Builder mergeFrom(CreateEndpointPolicyRequest other)
public CreateEndpointPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateEndpointPolicyRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateEndpointPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateEndpointPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateEndpointPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateEndpointPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides