public static final class CreateMonitoredProjectRequest.Builder extends GeneratedMessageV3.Builder<CreateMonitoredProjectRequest.Builder> implements CreateMonitoredProjectRequestOrBuilder
Request for the CreateMonitoredProject
method.
Protobuf type google.monitoring.metricsscope.v1.CreateMonitoredProjectRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateMonitoredProjectRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateMonitoredProjectRequest build()
Returns
buildPartial()
public CreateMonitoredProjectRequest buildPartial()
Returns
clear()
public CreateMonitoredProjectRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateMonitoredProjectRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMonitoredProject()
public CreateMonitoredProjectRequest.Builder clearMonitoredProject()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateMonitoredProjectRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateMonitoredProjectRequest.Builder clearParent()
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateMonitoredProjectRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateMonitoredProjectRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMonitoredProject()
public MonitoredProject getMonitoredProject()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getMonitoredProjectBuilder()
public MonitoredProject.Builder getMonitoredProjectBuilder()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getMonitoredProjectOrBuilder()
public MonitoredProjectOrBuilder getMonitoredProjectOrBuilder()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getParent()
public String getParent()
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasMonitoredProject()
public boolean hasMonitoredProject()
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the monitoredProject field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateMonitoredProjectRequest other)
public CreateMonitoredProjectRequest.Builder mergeFrom(CreateMonitoredProjectRequest other)
Parameter
Returns
public CreateMonitoredProjectRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateMonitoredProjectRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeMonitoredProject(MonitoredProject value)
public CreateMonitoredProjectRequest.Builder mergeMonitoredProject(MonitoredProject value)
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateMonitoredProjectRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CreateMonitoredProjectRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMonitoredProject(MonitoredProject value)
public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject value)
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setMonitoredProject(MonitoredProject.Builder builderForValue)
public CreateMonitoredProjectRequest.Builder setMonitoredProject(MonitoredProject.Builder builderForValue)
Required. The initial MonitoredProject
configuration.
Specify only the monitored_project.name
field. All other fields are
ignored. The monitored_project.name
must be in the format:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}/projects/{MONITORED_PROJECT_ID_OR_NUMBER}
.google.monitoring.metricsscope.v1.MonitoredProject monitored_project = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setParent(String value)
public CreateMonitoredProjectRequest.Builder setParent(String value)
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateMonitoredProjectRequest.Builder setParentBytes(ByteString value)
Required. The resource name of the existing Metrics Scope
that will monitor this
project.
Example:
locations/global/metricsScopes/{SCOPING_PROJECT_ID_OR_NUMBER}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateMonitoredProjectRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateMonitoredProjectRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides