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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EnableServiceRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public EnableServiceRequest build()
Returns
buildPartial()
public EnableServiceRequest buildPartial()
Returns
clear()
public EnableServiceRequest.Builder clear()
Returns
Overrides
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];
Returns
clearField(Descriptors.FieldDescriptor field)
public EnableServiceRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public EnableServiceRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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];
Returns
clone()
public EnableServiceRequest.Builder clone()
Returns
Overrides
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];
Returns
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];
Returns
Type | Description |
ByteString | The bytes for consumerId.
|
getDefaultInstanceForType()
public EnableServiceRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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];
Returns
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];
Returns
Type | Description |
ByteString | The bytes for serviceName.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(EnableServiceRequest other)
public EnableServiceRequest.Builder mergeFrom(EnableServiceRequest other)
Parameter
Returns
public EnableServiceRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EnableServiceRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EnableServiceRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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];
Parameter
Name | Description |
value | String
The consumerId to set.
|
Returns
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];
Parameter
Name | Description |
value | ByteString
The bytes for consumerId to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public EnableServiceRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EnableServiceRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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];
Parameter
Name | Description |
value | String
The serviceName to set.
|
Returns
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];
Parameter
Name | Description |
value | ByteString
The bytes for serviceName to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final EnableServiceRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides