public static final class EnableServiceRequest.Builder extends GeneratedMessageV3.Builder<EnableServiceRequest.Builder> implements EnableServiceRequestOrBuilder
Request message for EnableService method.
Protobuf type google.api.servicemanagement.v1.EnableServiceRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EnableServiceRequest.BuilderImplements
EnableServiceRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EnableServiceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EnableServiceRequest.Builder |
build()
public EnableServiceRequest build()
Type | Description |
EnableServiceRequest |
buildPartial()
public EnableServiceRequest buildPartial()
Type | Description |
EnableServiceRequest |
clear()
public EnableServiceRequest.Builder clear()
Type | Description |
EnableServiceRequest.Builder |
clearConsumerId()
public EnableServiceRequest.Builder clearConsumerId()
Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:
- "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.
string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
EnableServiceRequest.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public EnableServiceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
EnableServiceRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public EnableServiceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
EnableServiceRequest.Builder |
clearServiceName()
public EnableServiceRequest.Builder clearServiceName()
Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.
string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
EnableServiceRequest.Builder | This builder for chaining. |
clone()
public EnableServiceRequest.Builder clone()
Type | Description |
EnableServiceRequest.Builder |
getConsumerId()
public String getConsumerId()
Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:
- "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.
string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The consumerId. |
getConsumerIdBytes()
public ByteString getConsumerIdBytes()
Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:
- "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.
string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for consumerId. |
getDefaultInstanceForType()
public EnableServiceRequest getDefaultInstanceForType()
Type | Description |
EnableServiceRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getServiceName()
public String getServiceName()
Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.
string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The serviceName. |
getServiceNameBytes()
public ByteString getServiceNameBytes()
Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.
string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for serviceName. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(EnableServiceRequest other)
public EnableServiceRequest.Builder mergeFrom(EnableServiceRequest other)
Name | Description |
other | EnableServiceRequest |
Type | Description |
EnableServiceRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EnableServiceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EnableServiceRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public EnableServiceRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
EnableServiceRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EnableServiceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
EnableServiceRequest.Builder |
setConsumerId(String value)
public EnableServiceRequest.Builder setConsumerId(String value)
Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:
- "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.
string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The consumerId to set. |
Type | Description |
EnableServiceRequest.Builder | This builder for chaining. |
setConsumerIdBytes(ByteString value)
public EnableServiceRequest.Builder setConsumerIdBytes(ByteString value)
Required. The identity of consumer resource which service enablement will be applied to. The Google Service Management implementation accepts the following forms:
- "project:<project_id>" Note: this is made compatible with google.api.servicecontrol.v1.Operation.consumer_id.
string consumer_id = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for consumerId to set. |
Type | Description |
EnableServiceRequest.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public EnableServiceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EnableServiceRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EnableServiceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
EnableServiceRequest.Builder |
setServiceName(String value)
public EnableServiceRequest.Builder setServiceName(String value)
Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.
string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The serviceName to set. |
Type | Description |
EnableServiceRequest.Builder | This builder for chaining. |
setServiceNameBytes(ByteString value)
public EnableServiceRequest.Builder setServiceNameBytes(ByteString value)
Required. Name of the service to enable. Specifying an unknown service name will cause the request to fail.
string service_name = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for serviceName to set. |
Type | Description |
EnableServiceRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final EnableServiceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
EnableServiceRequest.Builder |