public static final class CreateViewRequest.Builder extends GeneratedMessageV3.Builder<CreateViewRequest.Builder> implements CreateViewRequestOrBuilder
The parameters to CreateView
.
Protobuf type google.logging.v2.CreateViewRequest
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateViewRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateViewRequest build()
Returns
buildPartial()
public CreateViewRequest buildPartial()
Returns
clear()
public CreateViewRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateViewRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateViewRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateViewRequest.Builder clearParent()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
Example:
"projects/my-logging-project/locations/my-location/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
clearView()
public CreateViewRequest.Builder clearView()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearViewId()
public CreateViewRequest.Builder clearViewId()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateViewRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateViewRequest getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
Example:
"projects/my-logging-project/locations/my-location/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
Example:
"projects/my-logging-project/locations/my-location/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
getView()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getViewBuilder()
public LogView.Builder getViewBuilder()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getViewId()
public String getViewId()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The viewId.
|
getViewIdBytes()
public ByteString getViewIdBytes()
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getViewOrBuilder()
public LogViewOrBuilder getViewOrBuilder()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
hasView()
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the view field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateViewRequest other)
public CreateViewRequest.Builder mergeFrom(CreateViewRequest other)
Parameter
Returns
public CreateViewRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateViewRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateViewRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
mergeView(LogView value)
public CreateViewRequest.Builder mergeView(LogView value)
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateViewRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateViewRequest.Builder setParent(String value)
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
Example:
"projects/my-logging-project/locations/my-location/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateViewRequest.Builder setParentBytes(ByteString value)
Required. The bucket in which to create the view
"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
Example:
"projects/my-logging-project/locations/my-location/buckets/my-bucket"
string parent = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateViewRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateViewRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setView(LogView value)
public CreateViewRequest.Builder setView(LogView value)
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setView(LogView.Builder builderForValue)
public CreateViewRequest.Builder setView(LogView.Builder builderForValue)
Required. The new view.
.google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setViewId(String value)
public CreateViewRequest.Builder setViewId(String value)
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The viewId to set.
|
Returns
setViewIdBytes(ByteString value)
public CreateViewRequest.Builder setViewIdBytes(ByteString value)
Required. The id to use for this view.
string view_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for viewId to set.
|
Returns